CVE-2022-29230Shopify Hydrogen
Medium 5.4
Follow: this CVE · Shopify · Shopify Hydrogen We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 3.1
- 5.4
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 49
- Auth required
- Yes
- Published
- May 18, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Hydrogen.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @shopify/hydrogen |
≥ 0.10.0 < 0.19.0 |
0.19.0 |
npm install @shopify/hydrogen@0.19.0 |
Per OSV / GitHub Advisories (GHSA-6j22-wv8g-894f). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| shopify | hydrogen | ≥ 0.10.0 < 0.19.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Issue Tracking Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory