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.
Remediation
References
https://github.com/Shopify/hydrogen/pull/1272
https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%400.19.0
https://github.com/Shopify/hydrogen/security/advisories/GHSA-6j22-wv8g-894f
Related Vulnerabilities
CVE-2016-8609 Vulnerability in maven package org.keycloak:keycloak-core
CVE-2024-36401 Vulnerability in maven package org.geoserver.web:gs-web-app
CVE-2023-32732 Vulnerability in maven package io.grpc:grpc-protobuf
CVE-2021-21617 Vulnerability in maven package org.jenkins-ci.plugins: configurationslicing
CVE-2022-23621 Vulnerability in maven package org.xwiki.platform:xwiki-platform-oldcore