Vulnerability Details : CVE-2022-25887
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.
Vulnerability category: Denial of service
Products affected by CVE-2022-25887
- cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-25887
0.05%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 12 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-25887
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
3.9
|
3.6
|
NIST | |
5.3
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
3.9
|
1.4
|
Snyk |
References for CVE-2022-25887
-
https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c
Merge pull request #557 from apostrophecms/release-2.7.1 · apostrophecms/sanitize-html@b4682c1 · GitHubPatch;Third Party Advisory
-
https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102
Regular Expression Denial of Service (ReDoS) in org.webjars.npm:sanitize-html | CVE-2022-25887 | SnykPatch;Third Party Advisory
-
https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526
Regular Expression Denial of Service (ReDoS) in sanitize-html | CVE-2022-25887 | SnykPatch;Third Party Advisory
-
https://github.com/apostrophecms/sanitize-html/pull/557
Release 2.7.1 by boutell · Pull Request #557 · apostrophecms/sanitize-html · GitHubIssue Tracking;Patch;Third Party Advisory
Jump to