Security mailing lists by PureSourceCode

CVE-2024-21501

MEDIUM 5.3CVSS 3.1

sanitize-html Information Exposure vulnerability

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.

Published
24 Feb 2024
Last modified
10 Sep 2026
Assigned by
report@snyk.io
NVD status
Analyzed
Weakness
CWE-200CWE-538
Also known as
GHSA-rm97-x556-q36h
Sources
NVDJSONOSV GHSA-rm97-x556-q36hJSON

Scores

SourceScored byVersionScoreVector / decision
NVD report@snyk.io (Secondary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD apostrophecms sanitize-html
cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*
< 2.12.1 2.12.1
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:*
= 39
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:*
= 40
OSV npm sanitize-html < 2.12.1 2.12.1

References

History

  • 25 Nov 2026 20:54 UTC · NVD: first stored (published 24 Feb 2024)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Feb 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.