Cross-site Scripting in @spscommerce/ds-reactGHSA-cfxh-frx4-9gjg
GHSA-cfxh-frx4-9gjg is a security vulnerability in @spscommerce/ds-react. A fix is available for @spscommerce/ds-react — see the affected versions and patch details below.
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
@spscommerce/ds-reactnpmDescription
Impact
XSS, anyone using the SPS Select with options prop populated from user input is impacted. If these options are stored, then it could have been a stored XSS.
Patches
The code has been patched for version 7 of woodland. Users should upgrade to 7.17.4 or higher
Workarounds
This is not recommended. If you are not upgrading then you would need to sanitize your options yourself (including those currently stored in databases). This is not recommended.
References
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | @spscommerce/ds-react | ≥ 4.12.2&&< 7.17.4 | 7.17.4npm install @spscommerce/ds-react@7.17.4 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @spscommerce/ds-react, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update @spscommerce/ds-react to 7.17.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-cfxh-frx4-9gjg is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is GHSA-cfxh-frx4-9gjg in your dependencies?
Find it across npm, including transitive dependencies.