{"id":"CVE-2024-21501","aliases":["CLSA-2026-1776644763","DEBIAN-CVE-2024-21501","EUVD-2024-0719","GHSA-rm97-x556-q36h","ROOT-APP-NPM-CVE-2024-21501","UBUNTU-CVE-2024-21501"],"status":"published","title":"sanitize-html Information Exposure vulnerability","description":"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.","severity":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.01027,"percentile":0.63909,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-200","CWE-538"],"published":"2024-02-24T05:00:02Z","modified":"2026-11-02T12:01:23Z","fixes":[{"ecosystem":"npm","package":"sanitize-html","fixed_in":["2.12.1"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:13","package":"node-sanitize-html","fixed_in":["2.13.0+~2.11.0-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"node-sanitize-html","fixed_in":["2.13.0+~2.11.0-1"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/sanitize-html","fixed_in":["1.4.2-root.io.8","1.4.2-root.io.9"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"sanitize-html","fixed_in":["1.4.2-aikido.9"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"sanitize-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.12.1"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"sanitize-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.27.5-tuxcare.0"},{"fixed":"1.27.5-tuxcare.2"}]}],"versions":["1.27.5","1.27.5-tuxcare.1"],"bundled":3},{"source":"osv","ecosystem":"Debian:12","package":"node-sanitize-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.13.0+~2.11.0-1","2.13.1+~2.13.0-1","2.14.0+~2.13.0-1","2.17.0+~2.16.1-1","2.8.0+~2.6.2-1"]},{"source":"osv","ecosystem":"Debian:13","package":"node-sanitize-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.13.0+~2.11.0-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-sanitize-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.13.0+~2.11.0-1"}]}]},{"source":"osv","ecosystem":"npm","package":"sanitize-html","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.12.1"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/sanitize-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.2-root.io.8"},{"fixed":"1.4.2-root.io.9"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"sanitize-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.2-aikido.9"}]}]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"node-sanitize-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.1-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"node-sanitize-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8.0+~2.6.2-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"node-sanitize-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.0+~2.13.0-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"node-sanitize-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.0+~2.13.0-1","2.17.0+~2.16.1-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"node-sanitize-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.0+~2.13.0-1"]}],"products":[{"vendor":"apostrophecms","product":"sanitize-html"},{"vendor":"fedoraproject","product":"fedora"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-6256334","tags":["x_transferred","Exploit","Third Party Advisory","web","report"]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6276557","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://gist.github.com/Slonser/8b4d061abe6ee1b2e10c7242987674cf","tags":["x_transferred","Exploit","Third Party Advisory","web","report"]},{"url":"https://github.com/apostrophecms/sanitize-html/pull/650","tags":["x_transferred","Patch","fix","web","report"]},{"url":"https://github.com/apostrophecms/apostrophe/discussions/4436","tags":["x_transferred","Issue Tracking","web","report"]},{"url":"https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4","tags":["x_transferred","Patch","fix","web","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P4I5X6V3LYUNBMZ5YOW4BV427TH3IK4S/","tags":["x_transferred","Mailing List","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EB5JPYRCTS64EA5AMV3INHDPI6I4AW7/","tags":["x_transferred","Mailing List","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21501","tags":["advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EB5JPYRCTS64EA5AMV3INHDPI6I4AW7","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P4I5X6V3LYUNBMZ5YOW4BV427TH3IK4S","tags":["web"]},{"url":"https://github.com/advisories/GHSA-rm97-x556-q36h"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21501.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-21501","tags":["advisory"]},{"url":"https://github.com/apostrophecms/sanitize-html","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2024-21501","tags":["report"]},{"url":"https://github.com/apostrophecms/sanitize-html/commit/075499d1b98c387f4200fd59972ca9b15796b51b","tags":["report"]},{"url":"https://github.com/apostrophecms/sanitize-html/commit/1e2294c8001ce07c89448e03289818da631795ba","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-21501","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-21501","description":"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.","status":"published","published":"2024-02-24T05:00:02.731Z","modified":"2025-02-13T17:33:15.082Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P","level":"medium","assessor":"cna"}],"cwes":["CWE-200","CWE-538"],"updated_at":"2026-11-02T14:34:04.681315Z"}],"euvd":[{"id":"EUVD-2024-0719","description":"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.","status":"published","published":"2024-02-24T05:00:02Z","modified":"2025-02-13T17:33:15Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P","level":"medium"}],"updated_at":"2026-11-03T00:03:47.088299Z"}],"ghsa":[{"id":"GHSA-rm97-x556-q36h","title":"sanitize-html Information Exposure vulnerability","description":"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.","status":"published","published":"2024-02-24T06:30:17Z","modified":"2026-03-22T05:07:10Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-200","CWE-538"],"updated_at":"2026-11-02T14:39:40.633038Z"}],"nvd":[{"id":"CVE-2024-21501","description":"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.","status":"published","published":"2024-02-24T05:15:44.31Z","modified":"2026-06-17T07:09:37.65Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-200","CWE-538"],"updated_at":"2026-11-02T14:09:37.655131Z"}],"osv":[{"id":"CVE-2024-21501","description":"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.","status":"published","published":"2024-02-24T05:00:02.731Z","modified":"2026-10-28T02:30:49.875266853Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P","level":"medium"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T15:44:38.577405Z"},{"id":"DEBIAN-CVE-2024-21501","description":"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.","status":"published","published":"2024-02-24T05:15:44.31Z","modified":"2026-11-02T12:01:23.058862011Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:41.849198Z"},{"id":"GHSA-rm97-x556-q36h","title":"sanitize-html Information Exposure vulnerability","description":"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.","status":"published","published":"2024-02-24T06:30:17Z","modified":"2026-09-10T03:50:09.893187752Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-200","CWE-538"],"updated_at":"2026-11-02T15:46:56.281047Z"},{"id":"UBUNTU-CVE-2024-21501","description":"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.","status":"published","published":"2024-02-24T05:15:00Z","modified":"2026-10-17T12:56:29.486271809Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T16:54:42.68848Z"},{"id":"CLSA-2026-1776644763","title":"TuxCare security update for sanitize-html (3 CVEs)","description":"TuxCare rebuilt sanitize-html to address 3 CVEs. Fixed in 1.27.5-tuxcare.2.","status":"published","published":"2026-08-04T14:52:18Z","modified":"2026-10-15T09:47:07.395053353Z","updated_at":"2026-11-02T15:43:44.009773Z"},{"id":"ROOT-APP-NPM-CVE-2024-21501","title":"CVE-2024-21501 in @rootio/sanitize-html - Patched by Root","description":"Root has patched CVE-2024-21501 in the @rootio/sanitize-html package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-06-04T20:57:52Z","modified":"2026-06-05T01:30:21.212968644Z","updated_at":"2026-11-02T15:53:27.362922Z"}]}}
