Vulnerability · Published May 18, 2022 · Assigned by GitHub_M
CVE-2022-29230Potential cross-site scripting (XSS) vulnerability in Hydrogen
Medium 6.3
In plain English
A medium-severity cross-site scripting in hydrogen from Shopify. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @shopify/hydrogen | 0.19.0 | GHSA-6j22-wv8g-894f |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
References
- https://github.com/Shopify/hydrogen/security/advisories/GHSA-6j22-wv8g-894f x_refsource_CONFIRM
- https://github.com/Shopify/hydrogen/pull/1272 x_refsource_MISC
- https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%400.19.0 x_refsource_MISC