Vulnerability · Published Oct 2, 2024 · Assigned by VulnCheck
CVE-2024-9440Slim Select 2.0 createOption "text" XSS
Medium 5.4
In plain English
A medium-severity cross-site scripting in slim-select. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 31% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Slim Select 2.0 versions through 2.9.0 are affected by a potential cross-site scripting vulnerability. In select.ts:createOption(), the text variable from the user-provided Options object is assigned to an innerHTML without sanitation. Software that depends on this library to dynamically generate lists using unsanitized user-provided input may be vulnerable to cross-site scripting, resulting in attacker executed JavaScript. At this time, no patch is available.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | slim-select | 2.9.2 | GHSA-qvqv-mcxr-x8qw |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| slim-select | 2.0 – through 2.9.0 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
References
- https://vulncheck.com/advisories/slim-select-xss third-party-advisory
- https://github.com/brianvoe/slim-select/issues/564 issue-tracking
- https://github.com/brianvoe/slim-select/blob/e7e37e2ff90e125f846bd98d6b8f278524ead79e/src/slim-select/select.ts#L377 x_vulnerable-code