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 v0.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: Hydrogen v0.19.0 Fix PR: https://github.com/Shopify/hydrogen/pull/1272
If you have any questions or comments about this advisory: * Open an issue in Shopify/hydrogen
{
"github_reviewed_at": "2022-05-19T20:29:04Z",
"github_reviewed": true,
"severity": "MODERATE",
"nvd_published_at": "2022-05-18T21:15:00Z",
"cwe_ids": [
"CWE-79"
]
}