6.3medium
Potential cross-site scripting (XSS) vulnerability in Hydrogen
- Severity
- 6.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.71% (higher than 49% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-6j22-wv8g-894f
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
| Product or package | Versions | Reported by |
|---|---|---|
| Shopify hydrogen | >= 0.10.0, <= 0.18.0, from 0.10.0 before 0.19.0 | CVE List, NVD |
| @shopify/hydrogen (npm) | from 0.10.0 before 0.19.0 | GitHub Advisory Database |
All scores
| GitHub_M | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| GitHub | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
All Hydrogen users should upgrade their project to v0.19.0.
Workarounds
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.
References
GitHub: Hydrogen v0.19.0 Fix PR: https://github.com/Shopify/hydrogen/pull/1272
For more information
If you have any questions or comments about this advisory:
- Open an issue in Shopify/hydrogen
NVD (es)
Hydrogen es un marco de trabajo basado en React para la construcción de escaparates personalizados dinámicos impulsados por Shopify. Se presenta una potencial vulnerabilidad de tipo Cross-Site Scripting (XSS) donde un usuario arbitrario es capaz de ejecutar scripts en páginas que son construidas con Hydrogen. Esto afecta a todas las versiones de Hydrogen desde versión 0.10.0 hasta 0.18.0. Esta vulnerabilidad es explotable en aplicaciones cuyos datos de hidratación son controlados por el usuario. Todos los usuarios de Hydrogen deberían actualizar sus proyectos a versión 0.19.0. No se presenta una medida de mitigación actual, y los usuarios deberían actualizar lo antes posible. Además, la Política de Seguridad de Contenidos no es una mitigación efectiva para esta vulnerabilidad
References
| https://github.com/Shopify/hydrogen/security/advisories/GHSA-6j22-wv8g-894f | third-party-advisory, web | |
| 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://nvd.nist.gov/vuln/detail/CVE-2022-29230 | advisory | |
| https://github.com/Shopify/hydrogen | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-29230 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6j22-wv8g-894f changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-29230 changed 2026-06-17 | Public domain |