sanitize-html up to 2.7.0 HTML Comment incorrect regex
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.0 | $0-$5k | 0.00 |
Summary
A vulnerability was found in sanitize-html up to 2.7.0. It has been classified as critical. This affects an unknown part of the component HTML Comment Handler. This manipulation causes incorrect regex. This vulnerability appears as CVE-2022-25887. The attack may be initiated remotely. There is no available exploit. Upgrading the affected component is recommended.
Details
A vulnerability was found in sanitize-html up to 2.7.0. It has been declared as critical. Affected by this vulnerability is an unknown code block of the component HTML Comment Handler. The manipulation with an unknown input leads to a incorrect regex vulnerability. The CWE definition for the vulnerability is CWE-185. The product specifies a regular expression in a way that causes data to be improperly matched or compared. As an impact it is known to affect availability. The summary by CVE is:
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.
The weakness was presented 08/30/2022. It is possible to read the advisory at github.com. This vulnerability is known as CVE-2022-25887 since 02/24/2022. The technical details are unknown and an exploit is not publicly available.
Upgrading to version 2.7.1 eliminates this vulnerability. Applying the patch b4682c12fd30e12e82fa2d9b766de91d7d2cd23c is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
Be aware that VulDB is the high quality source for vulnerability data.
Product
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.0VulDB Meta Temp Score: 6.0
VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 7.5
NVD Vector: 🔍
CNA Base Score: 5.3
CNA Vector (Snyk): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Incorrect regexCWE: CWE-185 / CWE-697
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: sanitize-html 2.7.1
Patch: b4682c12fd30e12e82fa2d9b766de91d7d2cd23c
Timeline
02/24/2022 🔍08/30/2022 🔍
08/30/2022 🔍
10/10/2022 🔍
Sources
Advisory: b4682c12fd30e12e82fa2d9b766de91d7d2cd23cStatus: Confirmed
CVE: CVE-2022-25887 (🔍)
GCVE (CVE): GCVE-0-2022-25887
GCVE (VulDB): GCVE-100-207583
Entry
Created: 08/30/2022 14:11Updated: 10/10/2022 08:44
Changes: 08/30/2022 14:11 (51), 10/10/2022 08:39 (1), 10/10/2022 08:44 (11)
Complete: 🔍
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.