Medium
yarnpkg Yarn request-manager.js setOptions redos
Type: advisorySources: OSV
A vulnerability has been found in yarnpkg Yarn up to 1.22.22. This impacts the function setOptions of the file src/util/request-manager.js. Such manipulation leads to inefficient regular expression complexity. Local access is required to approach this attack. This vulnerability only affects products that are no longer supported by the maintainer.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-9308
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 18:25 UTC · Revision 1
Source evidence
yarnpkg Yarn request-manager.js setOptions redos
core-osv · Original sourcePublished 21 Aug 2025, 16:02 UTC
A vulnerability has been found in yarnpkg Yarn up to 1.22.22. This impacts the function setOptions of the file src/util/request-manager.js. Such manipulation leads to inefficient regular expression complexity. Local access is required to approach this attack. This vulnerability only affects products that are no longer supported by the maintainer.
osv:CVE-2025-9308
Complete source record
{
"id": "0e5341e202feda8542d6b0dd65bed5ce3b7ff9ddd4d91351ba31c0d946c3cc7c",
"url": "https://osv.dev/vulnerability/CVE-2025-9308",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "yarnpkg Yarn request-manager.js setOptions redos",
"summary": "A vulnerability has been found in yarnpkg Yarn up to 1.22.22. This impacts the function setOptions of the file src/util/request-manager.js. Such manipulation leads to inefficient regular expression complexity. Local access is required to approach this attack. This vulnerability only affects products that are no longer supported by the maintainer.",
"evidence": "osv:CVE-2025-9308",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2025-9308",
"aliases": [
"CVE-2025-9308"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/yarnpkg/yarn",
"type": "GIT",
"events": [
{
"introduced": "eee67d02ed09172d5360df0fa0b9c73e23449818"
},
{
"last_affected": "740c38c3a962c30ddb344a919bbfb7065620714b"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "1.22.0"
},
{
"last_affected": "1.22.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.1"
},
{
"last_affected": "1.22.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.2"
},
{
"last_affected": "1.22.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.3"
},
{
"last_affected": "1.22.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.4"
},
{
"last_affected": "1.22.4"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.5"
},
{
"last_affected": "1.22.5"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.10"
},
{
"last_affected": "1.22.10"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.11"
},
{
"last_affected": "1.22.11"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.12"
},
{
"last_affected": "1.22.12"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.13"
},
{
"last_affected": "1.22.13"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.14"
},
{
"last_affected": "1.22.14"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.15"
},
{
"last_affected": "1.22.15"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.16"
},
{
"last_affected": "1.22.16"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.17"
},
{
"last_affected": "1.22.17"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.18"
},
{
"last_affected": "1.22.18"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.19"
},
{
"last_affected": "1.22.19"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.20"
},
{
"last_affected": "1.22.20"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.21"
},
{
"last_affected": "1.22.21"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.22.22"
},
{
"last_affected": "1.22.22"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"cpe": "cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.22.22"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"1.22.0",
"1.22.1",
"1.22.10",
"1.22.11",
"1.22.12",
"1.22.13",
"1.22.14",
"1.22.15",
"1.22.16",
"1.22.17",
"1.22.18",
"1.22.19",
"1.22.2",
"1.22.20",
"1.22.21",
"1.22.22",
"1.22.3",
"1.22.4",
"1.22.5",
"v1.22.22",
"v1.22.21",
"v1.22.20",
"v1.22.19",
"v1.22.18",
"v1.22.17",
"v1.22.16",
"v1.22.15",
"v1.22.14",
"v1.22.13",
"v1.22.12",
"v1.22.11",
"v1.22.10",
"v1.22.5",
"v1.22.4",
"v1.22.3",
"v1.22.2",
"v1.22.1",
"v1.22.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-9308.json"
}
}
],
"modified": "2026-10-28T02:30:38.434181845Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9308.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-9308",
"https://vuldb.com/?id.320913",
"https://vuldb.com/?submit.633486",
"https://github.com/yarnpkg/yarn/pull/9203",
"https://vuldb.com/?ctiid.320913"
],
"provider_metadata": {
"cwe_ids": [
"CWE-1333",
"CWE-400"
],
"cna_assigner": "VulDB",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "1.22.6"
},
{
"last_affected": "1.22.6"
},
{
"introduced": "1.22.7"
},
{
"last_affected": "1.22.7"
},
{
"introduced": "1.22.8"
},
{
"last_affected": "1.22.8"
},
{
"introduced": "1.22.9"
},
{
"last_affected": "1.22.9"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9308.json"
}
},
"related_cves": [
{
"value": "CVE-2025-9308",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 505678,
"published_at": "2025-08-21T16:02:12.172+00:00"
}