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.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.4%top 69.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npmslim-select2.9.2GHSA-qvqv-mcxr-x8qw

Affected products (as reported)

VendorProductVersions
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