{"id":"CVE-2024-21501","published":"2024-02-24T05:00:02Z","modified":"2025-02-13T17:33:15Z","title":"Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when used on the backend…","vendor":null,"product":null,"tier":"tail","description":{"text":"Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when used on the backend and with the style attribute allowed, allowing enumeration of files in the system (including project dependencies). An attacker could exploit this vulnerability to gather details about the file system structure and dependencies of the targeted server.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01027,"percentile":0.636,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-538","name":"Insertion of Sensitive Information into Externally-Accessible File or Directory"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-6256334","tags":[]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6276557","tags":[]},{"url":"https://gist.github.com/Slonser/8b4d061abe6ee1b2e10c7242987674cf","tags":[]},{"url":"https://github.com/apostrophecms/sanitize-html/pull/650","tags":[]},{"url":"https://github.com/apostrophecms/apostrophe/discussions/4436","tags":[]},{"url":"https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P4I5X6V3LYUNBMZ5YOW4BV427TH3IK4S/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EB5JPYRCTS64EA5AMV3INHDPI6I4AW7/","tags":[]}],"priority":{"score":16.4,"factors":[{"name":"EPSS percentile","points":12.72},{"name":"CVSS severity","points":3.71}]},"affectedVersions":[{"vendor":"n/a","product":"sanitize-html","versions":["< 2.12.1"]},{"vendor":"n/a","product":"org.webjars.npm:sanitize-html","versions":["all versions"]}],"affected":[{"ecosystem":"npm","package":"sanitize-html","vulnerableRanges":["<2.12.1"],"patched":["2.12.1"],"from":["GHSA-rm97-x556-q36h"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-0719","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sanitize-html-cve-2016-1000237","parents":[{"from":"CVE-2022-25887","to":"CVE-2024-21501","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:sanitize-html","fromFixed":"2.7.1","toFixed":"2.12.1","daysApart":543},{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c","https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4"],"basis":"shared function","functions":["sanitizeHtml"]}]},{"from":"CVE-2016-1000237","to":"CVE-2024-21501","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/apostrophecms/sanitize-html/commit/762fbc7bba389f3f789cc291c1eb2b64f60f2caf","https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4"],"basis":"shared function","functions":["sanitizeHtml"]}]},{"from":"CVE-2021-26539","to":"CVE-2024-21501","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/apostrophecms/sanitize-html/commit/bdf7836ef8f0e5b21f9a1aab0623ae8fcd09c1da","https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4"],"basis":"shared function","functions":["sanitizeHtml"]}]}],"packageHistory":[{"cve":"CVE-2021-26539","published":"2021-02-08","fixed":"2.3.1","kev":false},{"cve":"CVE-2021-26540","published":"2021-02-08","fixed":"2.3.2","kev":false},{"cve":"CVE-2022-25887","published":"2022-08-30","fixed":"2.7.1","kev":false},{"cve":"CVE-2024-21501","published":"2024-02-24","fixed":"2.12.1","kev":false},{"cve":"CVE-2026-40186","published":"2026-04-15","fixed":"2.17.3","kev":false},{"cve":"CVE-2026-44990","published":"2026-06-12","fixed":"2.17.4","kev":false},{"cve":"CVE-2026-53606","published":"2026-06-12","fixed":"2.17.5","kev":false}],"package":"npm:sanitize-html"}}