{"id":"UBUNTU-CVE-2024-21501","details":"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.","modified":"2026-10-17T12:56:29.486271809Z","published":"2024-02-24T05:15:00Z","upstream":["CVE-2024-21501"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-21501"},{"type":"REPORT","url":"https://github.com/apostrophecms/sanitize-html/pull/650"},{"type":"REPORT","url":"https://gist.github.com/Slonser/8b4d061abe6ee1b2e10c7242987674cf"},{"type":"REPORT","url":"https://github.com/apostrophecms/apostrophe/discussions/4436"},{"type":"REPORT","url":"https://github.com/apostrophecms/sanitize-html/commit/075499d1b98c387f4200fd59972ca9b15796b51b"},{"type":"REPORT","url":"https://github.com/apostrophecms/sanitize-html/commit/1e2294c8001ce07c89448e03289818da631795ba"},{"type":"REPORT","url":"https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-6256334"},{"type":"REPORT","url":"https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-21501"}],"affected":[{"package":{"name":"node-sanitize-html","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-sanitize-html?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.6.1-1","binary_name":"node-sanitize-html"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21501.json"}},{"package":{"name":"node-sanitize-html","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-sanitize-html?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8.0+~2.6.2-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.8.0+~2.6.2-1","binary_name":"node-sanitize-html"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21501.json"}},{"package":{"name":"node-sanitize-html","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-sanitize-html?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.0+~2.13.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.14.0+~2.13.0-1","binary_name":"node-sanitize-html"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21501.json"}},{"package":{"name":"node-sanitize-html","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/node-sanitize-html?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.0+~2.13.0-1","2.17.0+~2.16.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-sanitize-html","binary_version":"2.17.0+~2.16.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21501.json"}},{"package":{"name":"node-sanitize-html","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/node-sanitize-html?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.0+~2.13.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.14.0+~2.13.0-1","binary_name":"node-sanitize-html"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21501.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}