CVE-2022-29230
MEDIUM 5.4CVSS 3.1Potential Cross-site Scripting vulnerability in Hydrogen
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.
- Published
- 18 May 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-6j22-wv8g-894f
- Sources
- NVDJSONOSV GHSA-6j22-wv8g-894fJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | shopify | hydrogencpe:2.3:a:shopify:hydrogen:*:*:*:*:*:node.js:*:* |
>= 0.10.0, < 0.19.0 | 0.19.0 |
| OSV | npm | @shopify/hydrogen | >= 0.10.0, < 0.19.0 | 0.19.0 |
References
- https://github.com/Shopify/hydrogen/pull/1272 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%400.19.0 · Patch, Third Party Advisory, WEB
- https://github.com/Shopify/hydrogen/security/advisories/GHSA-6j22-wv8g-894f · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-29230 · ADVISORY
- https://github.com/Shopify/hydrogen · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 18 May 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 19 May 2022)