High
Security advisory
A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in validate-color v2.1.0 when handling crafted invalid rgb(a) strings.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-40892
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 05:18 UTC · Revision 1
Source evidence
A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in validate-color v2.1.0 when handling crafted invalid rgb(a) strings.
osv:CVE-2021-40892
Complete source record
{
"id": "3e740bd767d001b1ff91a98423d9ab14e894045722105a0847f1af9b22bef7f9",
"url": "https://osv.dev/vulnerability/CVE-2021-40892",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-40892",
"summary": "A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in validate-color v2.1.0 when handling crafted invalid rgb(a) strings.",
"evidence": "osv:CVE-2021-40892",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-40892",
"aliases": [
"CVE-2021-40892"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/dreamyguy/validate-color",
"type": "GIT",
"events": [
{
"introduced": "003dfa8122541972ad23999eafffdc40932cd5d5"
},
{
"last_affected": "003dfa8122541972ad23999eafffdc40932cd5d5"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:validate_color_project:validate_color:2.1.0:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "2.1.0"
},
{
"last_affected": "2.1.0"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"2.1.0",
"v2.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40892.json"
}
}
],
"modified": "2026-10-24T10:30:26.958252155Z",
"provider": "osv",
"references": [
"https://github.com/yetingli/SaveResults/blob/main/js/validate-color.js"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-40892",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 431718,
"published_at": "2022-06-24T14:15:07.7+00:00"
}