GHSA-cfxh-frx4-9gjg: Cross-site Scripting in @spscommerce/ds-react
N/A
CVSS Score
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
12/15/2023
Updated
12/15/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
-
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| @spscommerce/ds-react | npm | >= 4.12.2, < 7.17.4 | 7.17.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
- The vulnerability manifests in SPS Select component options rendering
- The GitHub reference directly points to line 559 in SpsOptionList.tsx
- XSS typically occurs when unsanitized user input reaches DOM operations
- The workaround recommendation to sanitize options implies the component wasn't handling sanitization
- React applications vulnerable to XSS often have dangerous pattern matches like:
- Using dangerouslySetInnerHTML with user content
- Direct text interpolation in JSX without escaping
- The line number location suggests this is where option content gets rendered to the DOM