{"id":"CVE-2024-9440","state":"PUBLISHED","title":"Slim Select 2.0 createOption \"text\" XSS","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.","publishedAt":"2024-10-02T18:40:05.254Z","updatedAt":"2026-07-14T22:54:54.888Z","severity":{"score":5.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","source":"VulnCheck"},"assigner":"VulnCheck","products":["slim-select"],"affected":[{"packageName":"slim-select","packageURL":"pkg:npm/slim-select","defaultStatus":"unaffected","versions":[{"version":"2.0","status":"affected","lessThanOrEqual":"2.9.0","versionType":"custom"}],"collectionURL":"https://www.npmjs.com/package/slim-select","programFiles":["src/slim-select/select.ts"],"programRoutines":[{"name":"createOption"}],"repo":"https://github.com/brianvoe/slim-select"}],"references":["https://vulncheck.com/advisories/slim-select-xss","https://github.com/brianvoe/slim-select/issues/564","https://github.com/brianvoe/slim-select/blob/e7e37e2ff90e125f846bd98d6b8f278524ead79e/src/slim-select/select.ts#L377"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:08:20.985Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/9xxx/CVE-2024-9440.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-9440","state":"PUBLISHED","datePublished":"2024-10-02T18:40:05.254Z","dateUpdated":"2026-07-14T22:54:54.888Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2024-10-02T17:45:54.918Z"},"containers":{"cna":{"title":"Slim Select 2.0 createOption \"text\" XSS","descriptions":[{"lang":"en","value":"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":[{"packageName":"slim-select","packageURL":"pkg:npm/slim-select","defaultStatus":"unaffected","versions":[{"version":"2.0","status":"affected","lessThanOrEqual":"2.9.0","versionType":"custom"}],"collectionURL":"https://www.npmjs.com/package/slim-select","programFiles":["src/slim-select/select.ts"],"programRoutines":[{"name":"createOption"}],"repo":"https://github.com/brianvoe/slim-select"}],"references":[{"url":"https://vulncheck.com/advisories/slim-select-xss","tags":["third-party-advisory"]},{"url":"https://github.com/brianvoe/slim-select/issues/564","tags":["issue-tracking"]},{"url":"https://github.com/brianvoe/slim-select/blob/e7e37e2ff90e125f846bd98d6b8f278524ead79e/src/slim-select/select.ts#L377","tags":["x_vulnerable-code"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-07-14T22:54:54.888Z"},"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:slimselectjs:slim_select:*:*:*:*:*:node.js:*:*","versionEndIncluding":"2.9.0","versionStartIncluding":"2.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"OR"}],"credits":[{"lang":"en","type":"finder","value":"Alexis Marquois"}],"impacts":[{"capecId":"CAPEC-243","descriptions":[{"lang":"en","value":"CAPEC-243 XSS Targeting HTML Attributes"}]}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"vulncheck"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"brian_voelker","product":"slim_select","defaultStatus":"unknown","versions":[{"version":"2.0","status":"affected","lessThanOrEqual":"2.9.0","versionType":"semver"}],"cpes":["cpe:2.3:a:brian_voelker:slim_select:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-10-02T19:10:39.450536Z","id":"CVE-2024-9440","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-02T19:13:30.506Z"}}]}}}