Vulnerabilities in pkg:npm/@awsui/components-react

PACKAGE
Advisory Identifier: GHSA-mf22-92pm-m8p8
Advisory Summary

CVE-2022-24709 is a HIGH (CVSS 8.8) cross site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting @awsui/components react libraries in the npm ecosystem. The issue involves cross site scripting in @awsui/components-react. Remediation is available by upgrading affected packages to version 3.0.367.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@awsui/components-react

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@awsui/components-react. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-mf22-92pm-m8p8 CVE-2022-24709 HIGH Cross site scripting in @awsui/components-react

CVE-2022-24709 at a Glance

CVE Identifier CVE-2022-24709
GHSA Identifier GHSA-mf22-92pm-m8p8
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product @awsui/components react
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.8

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:R/S:U/C:H/I:H/A:H).

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

How to Fix CVE-2022-24709

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

@awsui/components-react fixed: 3.0.367
npm install @awsui/components-react@3.0.367
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 @awsui/components-react

How to Check if You Are Affected

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

npm ls @awsui/components-react

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

Note: The npm ls @awsui/components-react 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In @awsui/components react, 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 Components could potentially allow cross-site scripting (XSS) in certain circumstances. These components could render content without adequate neutralization. ### Patches Fixed in 3.0.367.

CVE-2022-24709 Affected @awsui/components react Versions

1 component(s)
Fixed Versions:
3.0.367
Product / Package Ecosystem Affected Versions Fixed Version
@awsui/components-react
npm
< 3.0.367
3.0.367

References

Frequently Asked Questions

What is CVE-2022-24709?
CVE-2022-24709 is a security vulnerability in @awsui/components react involving Cross site scripting in @awsui/components-react under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which @awsui/components react versions are affected?
Affected versions include releases prior to 3.0.367 across affected packages: @awsui/components-react.
What version fixes CVE-2022-24709?
Upgrading to 3.0.367 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @awsui/components-react affected?
Yes, @awsui/components-react is affected in releases prior to 3.0.367. Upgrade your dependency to 3.0.367 or later.
What is the CVSS score of CVE-2022-24709?
CVE-2022-24709 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-24709?
CVE-2022-24709 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for CVE-2022-24709?
Run the dependency tree command: 'npm ls @awsui/components-react'. 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-mf22-92pm-m8p8",
  "modified" : "2022-03-09T21:12:59Z",
  "published" : "2022-02-25T15:36:47Z",
  "aliases" : [ "CVE-2022-24709" ],
  "summary" : "Cross site scripting in @awsui/components-react",
  "details" : "### Impact\nComponents could potentially allow cross-site scripting (XSS) in certain circumstances. These components could render content without adequate neutralization.\n\n### Patches\nFixed in 3.0.367.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@awsui/components-react"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.367"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/aws/awsui-documentation/security/advisories/GHSA-mf22-92pm-m8p8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24709"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aws/awsui-documentation"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/package/@awsui/components-react"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-02-25T15:36:47Z",
    "nvd_published_at" : "2022-02-24T20:15:00Z"
  }
}