CVE-2022-29230 Potential cross-site scripting (XSS) vulnerability in Hydrogen
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2022-29230?
CVE-2022-29230 is a medium-severity vulnerability in Shopify hydrogen, published on 18 May 2022.
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.
Weakness: CWE-79
Which versions are affected by CVE-2022-29230?
2 open source packages ship an affected version, including @shopify/hydrogen. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
@shopify/hydrogen npm | From 0.10.0 | 0.19.0 |
@shopify/hydrogen npm | From 0.10.0 | 0.19.0 |
Products include Shopify Hydrogen.
How do I fix CVE-2022-29230?
Upgrade @shopify/hydrogen to 0.19.0 or later.
Is CVE-2022-29230 being exploited?
There is no known exploitation of CVE-2022-29230 in the wild and no public exploit code.
Sources
Also known as GHSA-6j22-wv8g-894f.