Security
Headlines
HeadlinesLatestCVEs

Headline

GHSA-6j22-wv8g-894f: Potential Cross-site Scripting vulnerability in Hydrogen

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:

ghsa
#xss#vulnerability#nodejs#git

Package

npm @shopify/hydrogen (npm )

Affected versions

>= 0.10.0, <= 0.18.0

Patched versions

0.19.0

Description

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: Shopify/hydrogen#1272

For more information

If you have any questions or comments about this advisory:

  • Open an issue in Shopify/hydrogen

References

  • GHSA-6j22-wv8g-894f
  • https://nvd.nist.gov/vuln/detail/CVE-2022-29230
  • Shopify/hydrogen#1272
  • https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%400.19.0

itsgarcia published the maintainer security advisory

May 14, 2022

Severity

Moderate

6.3

/ 10

CVSS base metrics

Attack vector

Network

Attack complexity

Low

Privileges required

Low

User interaction

None

Scope

Unchanged

Confidentiality

Low

Integrity

Low

Availability

Low

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Weaknesses

CWE-79

CVE ID

CVE-2022-29230

GHSA ID

GHSA-6j22-wv8g-894f

Source code

Shopify/hydrogen

Improvements are not currently accepted on this advisory because it uses an unsupported versioning operator. Read more and discuss here.

Related news

CVE-2022-29230: Remove flight chunk by wizardlyhel · Pull Request #1272 · Shopify/hydrogen

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.