Vulnerabilities in pkg:npm/@podium/layout

PACKAGE
Advisory Identifier: GHSA-3hjg-vc7r-rcrw
Advisory Summary

CVE-2022-24822 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-248: Uncaught Exception) affecting @podium/layout libraries in the npm ecosystem. The issue involves denial of service vulnerability in @podium/layout and @podium/proxy. Remediation is available by upgrading affected packages to version 4.6.110, 4.2.74.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@podium/layout

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@podium/layout. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3hjg-vc7r-rcrw CVE-2022-24822 HIGH Denial of Service vulnerability in @podium/layout and @podium/proxy

CVE-2022-24822 at a Glance

CVE Identifier CVE-2022-24822
GHSA Identifier GHSA-3hjg-vc7r-rcrw
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-248: Uncaught Exception
Affected Product @podium/layout
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2022-24822

To remediate this vulnerability, upgrade all affected @podium/layout dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@podium/layout fixed: 4.6.110
npm install @podium/layout@4.6.110
@podium/proxy fixed: 4.2.74
npm install @podium/proxy@4.2.74
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @podium/layout

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2022-24822, inspect your project dependencies using npm:

npm ls @podium/layout

Analyze the terminal output to locate any version of @podium/layout in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.6.110), your application is affected.

Note: The npm ls @podium/layout command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-248: Uncaught Exception, where an exception is thrown from a function, but it is not caught. In @podium/layout, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact An attacker using the `Trailer` header as part of the request against proxy endpoints has the ability to take down the server. All Podium layouts that include podlets with proxy endpoints are affected. ### Patches `@podium/layout` which is the main way developers/users are vulnerable to this exploit, has been patched in version `4.6.110`. All earlier versions are vulnerable. `@podium/proxy` which is the source of the vulnerability and is used by `@podium/layout` has been patched in version `4.2.74`. All earlier versions are vulnerable. ### Workarounds It is not easily possible to work around this issue without upgrading. We recommend upgrading `@podium/layout` and/or `@podium/proxy` as soon as possible. ### For more information If you have any questions or comments about this advisory: * Open an issue in [podium-lib/issues](https://github.com/podium-lib/issues) ### Credits The vulnerability was reported by [krynos](https://hackerone.com/krynos) from [Ercoli Consulting](https://www.ercoliconsulting.eu/) via FINN.no's private bug bounty program

CVE-2022-24822 Affected @podium/layout Versions

2 component(s)
Fixed Versions:
4.6.1104.2.74
Product / Package Ecosystem Affected Versions Fixed Version
@podium/layout
npm
< 4.6.110
4.6.110
@podium/proxy
npm
< 4.2.74
4.2.74

References

Frequently Asked Questions

What is CVE-2022-24822?
CVE-2022-24822 is a security vulnerability in @podium/layout involving Denial of Service vulnerability in @podium/layout and @podium/proxy under CWE-248: Uncaught Exception.
Which @podium/layout versions are affected?
Affected versions include releases prior to 4.6.110, 4.2.74 across affected packages: @podium/layout, @podium/proxy.
What version fixes CVE-2022-24822?
Upgrading to 4.6.110, 4.2.74 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @podium/layout affected?
Yes, @podium/layout is affected in releases prior to 4.6.110. Upgrade your dependency to 4.6.110 or later.
Is @podium/proxy affected?
Yes, @podium/proxy is affected in releases prior to 4.2.74. Upgrade your dependency to 4.2.74 or later.
What is the CVSS score of CVE-2022-24822?
CVE-2022-24822 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2022-24822?
CVE-2022-24822 is classified under CWE-248: Uncaught Exception (An exception is thrown from a function, but it is not caught.).
How can I check npm dependencies for CVE-2022-24822?
Run the dependency tree command: 'npm ls @podium/layout'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3hjg-vc7r-rcrw",
  "modified" : "2022-04-07T15:20:23Z",
  "published" : "2022-04-07T15:20:23Z",
  "aliases" : [ "CVE-2022-24822" ],
  "summary" : "Denial of Service vulnerability in @podium/layout and @podium/proxy",
  "details" : "### Impact\nAn attacker using the `Trailer` header as part of the request against proxy endpoints has the ability to take down the server.\nAll Podium layouts that include podlets with proxy endpoints are affected.\n\n### Patches\n`@podium/layout` which is the main way developers/users are vulnerable to this exploit, has been patched in version `4.6.110`. All earlier versions are vulnerable.\n`@podium/proxy` which is the source of the vulnerability and is used by `@podium/layout` has been patched in version `4.2.74`. All earlier versions are vulnerable.\n\n### Workarounds\nIt is not easily possible to work around this issue without upgrading. We recommend upgrading `@podium/layout` and/or `@podium/proxy` as soon as possible.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [podium-lib/issues](https://github.com/podium-lib/issues)\n\n### Credits\nThe vulnerability was reported by [krynos](https://hackerone.com/krynos) from [Ercoli Consulting](https://www.ercoliconsulting.eu/) via FINN.no's private bug bounty program\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@podium/layout"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.6.110"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@podium/proxy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.2.74"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/podium-lib/proxy/security/advisories/GHSA-3hjg-vc7r-rcrw"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24822"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/podium-lib/layout/commit/fe43e655432b0a5f07b6475f67babcc2588fb039"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/podium-lib/proxy/commit/9698a40df081217ce142d4de71f929baaa339cdf"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/podium-lib/layout/releases/tag/v4.6.110"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/podium-lib/proxy/releases/tag/v4.2.74"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-248" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-04-07T15:20:23Z",
    "nvd_published_at" : "2022-04-06T18:15:00Z"
  }
}