High
Security advisory
The is-svg package 2.1.0 through 4.2.1 for Node.js uses a regular expression that is vulnerable to Regular Expression Denial of Service (ReDoS). If an attacker provides a malicious string, is-svg will get stuck processing the input for a very long time.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-28092
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:43 UTC · Revision 1
Source evidence
The is-svg package 2.1.0 through 4.2.1 for Node.js uses a regular expression that is vulnerable to Regular Expression Denial of Service (ReDoS). If an attacker provides a malicious string, is-svg will get stuck processing the input for a very long time.
osv:CVE-2021-28092
Complete source record
{
"id": "4fd1b3b45492a1f306dfbe04cfe1671865bc835b52e912555be58feccaf0a999",
"url": "https://osv.dev/vulnerability/CVE-2021-28092",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-28092",
"summary": "The is-svg package 2.1.0 through 4.2.1 for Node.js uses a regular expression that is vulnerable to Regular Expression Denial of Service (ReDoS). If an attacker provides a malicious string, is-svg will get stuck processing the input for a very long time.",
"evidence": "osv:CVE-2021-28092",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-28092",
"aliases": [
"CVE-2021-28092",
"GHSA-7r28-3m3f-r2pr"
],
"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/sindresorhus/is-svg",
"type": "GIT",
"events": [
{
"introduced": "f681396a3fb6451558e9c49b72340f0ce92e308c"
},
{
"last_affected": "aa51039b0da7fd97331feabfe433973d2a60a556"
},
{
"fixed": "1f34e79baf3d38984c8de7e1800f3a1bd0c6a09a"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:is-svg_project:is-svg:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "2.1.0"
},
{
"last_affected": "4.2.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "1f34e79baf3d38984c8de7e1800f3a1bd0c6a09a"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v4.2.2"
}
]
}
}
],
"versions": [
"v4.2.1",
"v4.2.0",
"v4.1.0",
"v4.0.0",
"v3.0.0",
"v2.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-28092.json"
}
}
],
"modified": "2026-10-20T10:54:36.142905535Z",
"provider": "osv",
"references": [
"https://www.npmjs.com/package/is-svg",
"https://github.com/sindresorhus/is-svg/releases",
"https://github.com/sindresorhus/is-svg/releases/tag/v4.2.2",
"https://security.netapp.com/advisory/ntap-20210513-0008/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-28092",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385705,
"published_at": "2021-03-12T22:15:14.983+00:00"
}