CVE-2024-9440 json
Slim Select 2.0 createOption "text" XSS
published 2024-10-02 2 y ago modified 2026-07-14 3 mo ago also GHSA-qvqv-mcxr-x8qw , EUVD-2024-3121
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 30%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm slim-select 2.9.2
- slimselectjs slim_select 2.9.2
- github.com/brianvoe/slim-select@f8534f2 commit
- github.com/brianvoe/slim-select#572 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.36% chance of exploitation in the next 30 days, higher than 30% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/brianvoe/slim-select/issues/564 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | slim-select | >=2.0.0, <2.9.2 |
2.9.2 |
Affected products
- brian_voelker slim_select
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/brianvoe/slim-select/pull/572
web
-
github.com
/brianvoe/slim-select/commit/f8534f27d6e9bab89024d139f1c4f7555f1efd5e
web
-
github.com
/brianvoe/slim-select/issues/564
issue-tracking, web, exploit
-
vulncheck.com
/advisories/slim-select-xss
third-party-advisory, web
-
github.com
/brianvoe/slim-select/blob/e7e37e2ff90e125f846bd98d6b8f278524ead79e/src/slim-select/select.ts#L377
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2024-9440
advisory
-
github.com
/brianvoe/slim-select
package
Sources
- CVE List CVE-2024-9440
- GitHub Advisory GHSA-qvqv-mcxr-x8qw
- NVD CVE-2024-9440
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.