Security mailing lists by PureSourceCode

CVE-2022-25887

HIGH 7.5CVSS 3.1

Sanitize-html Vulnerable To REDoS Attacks

The package sanitize-html before 2.7.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure global regular expression replacement logic of HTML comment removal.

Published
30 Aug 2022
Last modified
17 Jun 2026
Assigned by
report@snyk.io
NVD status
Modified
Weakness
CWE-1333
Also known as
GHSA-cgfm-xwp7-2cvr
Sources
NVDJSONOSV GHSA-cgfm-xwp7-2cvrJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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:N/I:N/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD apostrophecms sanitize-html
cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*
< 2.7.1 2.7.1
OSV npm sanitize-html < 2.7.1 2.7.1

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 30 Aug 2022)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 31 Aug 2022)
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.