Skip to content
OpenAdvisories
Medium · 6.3 CVE-2022-29230 EUVD-2022-2805GHSA-6j22-wv8g-894f

Potential cross-site scripting (XSS) vulnerability in Hydrogen

Published May 18, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
Shopify hydrogen >= 0.10.0, <= 0.18.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @shopify/hydrogen >= 0.10.0, < 0.19.0 0.19.0 GHSA-6j22-wv8g-894f

References