GHSA-6j22-wv8g-894f

Suggest an improvement
Source
https://github.com/advisories/GHSA-6j22-wv8g-894f
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-6j22-wv8g-894f/GHSA-6j22-wv8g-894f.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6j22-wv8g-894f
Aliases
  • CVE-2022-29230
Published
2022-05-19T20:29:04Z
Modified
2023-11-08T04:09:11.671970Z
Severity
  • 6.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
Summary
Potential Cross-site Scripting vulnerability in Hydrogen
Details

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

Database specific
{
    "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"
    ]
}
References

Affected packages

npm / @shopify/hydrogen

Package

Name
@shopify/hydrogen
View open source insights on deps.dev
Purl
pkg:npm/%40shopify/hydrogen

Affected ranges

Type
SEMVER
Events
Introduced
0.10.0
Fixed
0.19.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-6j22-wv8g-894f/GHSA-6j22-wv8g-894f.json"