GHSA-cgfm-xwp7-2cvr

Suggest an improvement
Source
https://github.com/advisories/GHSA-cgfm-xwp7-2cvr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-cgfm-xwp7-2cvr/GHSA-cgfm-xwp7-2cvr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cgfm-xwp7-2cvr
Aliases
Published
2022-08-31T00:00:24Z
Modified
2024-04-22T23:56:49.765909Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Sanitize-html Vulnerable To REDoS Attacks
Details

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.

Database specific
{
    "nvd_published_at": "2022-08-30T05:15:00Z",
    "cwe_ids": [
        "CWE-1333"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-04-22T23:16:47Z"
}
References

Affected packages

npm / sanitize-html

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.1