{"id":"CVE-2022-29230","aliases":["CVE-2022-29230","GHSA-6j22-wv8g-894f"],"related":[],"kind":"vulnerability","state":"published","title":"Potential cross-site scripting (XSS) vulnerability in Hydrogen","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThere 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. \n\n### Patches\nAll Hydrogen users should upgrade their project to v0.19.0.\n\n### Workarounds\nThere is no current workaround, and users should update as soon as possible.\n\nAdditionally, the Content Security Policy is not an effective mitigation for this vulnerability. \n\n### References\nGitHub: [Hydrogen v0.19.0](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%400.19.0)\nFix PR: https://github.com/Shopify/hydrogen/pull/1272\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Shopify/hydrogen](https://github.com/Shopify/hydrogen/issues/new/choose)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2022-05-18T20:30:13.000Z","modified":"2026-06-17T04:39:52.793Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 0.10.0, <= 0.18.0","status":"affected"}],"vendor":"Shopify","product":"hydrogen","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.10.0","status":"affected","fixed":"0.19.0"}],"ecosystem":"npm","package":"@shopify/hydrogen","purl":"pkg:npm/%40shopify/hydrogen","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.10.0","fixed":"0.19.0"}],"vendor":"shopify","product":"hydrogen","cpe":"cpe:2.3:a:shopify:hydrogen:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Shopify/hydrogen/security/advisories/GHSA-6j22-wv8g-894f","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Shopify/hydrogen/pull/1272","tags":["issue-tracking","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%400.19.0","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29230","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Shopify/hydrogen","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T14:07:28.385Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-29230","url":"https://www.cve.org/CVERecord?id=CVE-2022-29230","licence":"CVE Terms of Use","modified":"2025-04-23T18:25:24.537Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6j22-wv8g-894f","url":"https://github.com/advisories/GHSA-6j22-wv8g-894f","licence":"CC-BY-4.0","modified":"2023-11-08T04:09:11.671Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-29230","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29230","licence":"Public domain","modified":"2026-06-17T04:39:52.793Z"}],"updatedAt":"2026-11-25T22:58:11.809Z","epss":{"score":0.00714,"percentile":0.49438,"date":"2026-11-30T12:00:22.000Z"}}