Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. hydrogen
  4. ›
  5. CVE-2022-29230

CVE-2022-29230: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

May 18, 2022 (updated June 1, 2022)

Hydrogen is a React-based framework for building dynamic, Shopify-powered custom storefronts. There is a potential Cross-Site Scripting (XSS) vulnerability where an arbitrary user is able to execute scripts on pages that are built with Hydrogen. This affects all versions of Hydrogen starting from version 0.10.0 to 0.18.0. This vulnerability is exploitable in applications whose hydrating data is user controlled. All Hydrogen users should upgrade their project to version 0.19.0. There is no current workaround, and users should update as soon as possible. Additionally, the Content Security Policy is not an effective mitigation for this vulnerability.

References

  • github.com/Shopify/hydrogen/pull/1272
  • github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%400.19.0
  • github.com/Shopify/hydrogen/security/advisories/GHSA-6j22-wv8g-894f
  • nvd.nist.gov/vuln/detail/CVE-2022-29230

Code Behaviors & Features

Detect and mitigate CVE-2022-29230 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.10.0 before 0.19.0

Fixed versions

  • 0.19.0

Solution

Upgrade to version 0.19.0 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/hydrogen/CVE-2022-29230.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:06 +0000.