CVE-2022-29230
JSON

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 packageVersionsReported by
Shopify hydrogen>= 0.10.0, <= 0.18.0, from 0.10.0 before 0.19.0CVE List, NVD
@shopify/hydrogen (npm)from 0.10.0 before 0.19.0GitHub Advisory Database

All scores

GitHub_M6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
GitHub6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD3.5low CVSS:2.0AV:N/AC:M/Au:S/C:N/I:P/A:N

Classification

CWE-79

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:

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

Sources

SourceRecordLicence
CVE ListCVE-2022-29230 changed 2025-04-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-6j22-wv8g-894f changed 2023-11-08CC-BY-4.0
NVDCVE-2022-29230 changed 2026-06-17Public domain