Every CVE Search/ Get API key

CVE-2025-8262

yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos

5.3 Medium

A vulnerability was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic. Affected is the function explodeHostedGitFragment of the file src/resolvers/exotics/hosted-git-resolver.js. The manipulation leads to inefficient regular expression complexity. It is possible to launch the attack remotely. The patch is identified as 97731871e674bf93bcbf29e9d3258da8685f3076. It is recommended to apply a patch to fix this issue.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
Low

Exploit likelihood

0.84%Up 0.8 points since Jul 28, 2025
90%50%10%1%

What each source reports

CVE List Score used 5.3

yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos

A vulnerability was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic. Affected is the function explodeHostedGitFragment of the file src/resolvers/exotics/hosted-git-resolver.js. The manipulation leads to inefficient regular expression complexity. It is possible to launch the attack remotely. The patch is identified as 97731871e674bf93bcbf29e9d3258da8685f3076. It is recommended to apply a patch to fix this issue.

Record
CVE-2025-8262
CVSS 4.0
5.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C
CVSS 3.0
4.3 MediumCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C
CVSS 2.0
4.0 AV:N/AC:L/Au:S/C:N/I:N/A:P/E:ND/RL:OF/RC:C
Weakness
CWE-1333, CWE-400
Updated
2026-11-02
EUVDEUVD-2025-22855 5.3

A vulnerability was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic. Affected is the function explodeHostedGitFragment of the file src/resolvers/exotics/hosted-git-resolver.js. The manipulation leads to inefficient regular expression complexity. It is possible to launch the attack remotely. The patch is identified as 97731871e674bf93bcbf29e9d3258da8685f3076. It is recommended to apply a patch to fix this issue.

Record
EUVD-2025-22855
CVSS 4.0
5.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X
Updated
2026-11-02
GitHub AdvisoriesGHSA-9xhp-f235-5v37 5.3

A vulnerability was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic....

A vulnerability was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic. Affected is the function explodeHostedGitFragment of the file src/resolvers/exotics/hosted-git-resolver.js. The manipulation leads to inefficient regular expression complexity. It is possible to launch the attack remotely. The patch is identified as 97731871e674bf93bcbf29e9d3258da8685f3076. It is recommended to apply a patch to fix this issue.

Record
GHSA-9xhp-f235-5v37
CVSS 4.0
5.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Weakness
CWE-400
Updated
2026-11-02
NVD 5.3

A vulnerability was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic. Affected is the function explodeHostedGitFragment of the file src/resolvers/exotics/hosted-git-resolver.js. The manipulation leads to inefficient regular expression complexity. It is possible to launch the attack remotely. The patch is identified as 97731871e674bf93bcbf29e9d3258da8685f3076. It is recommended to apply a patch to fix this issue.

Record
CVE-2025-8262
CVSS 4.0
5.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
4.0 MediumAV:N/AC:L/Au:S/C:N/I:N/A:P
Weakness
CWE-400, CWE-1333
Updated
2026-11-02
OSVBELL-CVE-2025-8262 7.5
Record
BELL-CVE-2025-8262
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSV 5.3

yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos

A vulnerability was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic. Affected is the function explodeHostedGitFragment of the file src/resolvers/exotics/hosted-git-resolver.js. The manipulation leads to inefficient regular expression complexity. It is possible to launch the attack remotely. The patch is identified as 97731871e674bf93bcbf29e9d3258da8685f3076. It is recommended to apply a patch to fix this issue.

Record
CVE-2025-8262
CVSS 4.0
5.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X
Weakness
CWE-1333, CWE-400
Updated
2026-11-02
OSVDEBIAN-CVE-2025-8262 7.5

A vulnerability was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic. Affected is the function explodeHostedGitFragment of the file src/resolvers/exotics/hosted-git-resolver.js. The manipulation leads to inefficient regular expression complexity. It is possible to launch the attack remotely. The patch is identified as 97731871e674bf93bcbf29e9d3258da8685f3076. It is recommended to apply a patch to fix this issue.

Record
DEBIAN-CVE-2025-8262
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2025-8262 5.3

A vulnerability was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic. Affected is the function explodeHostedGitFragment of the file src/resolvers/exotics/hosted-git-resolver.js. The manipulation leads to inefficient regular expression complexity. It is possible to launch the attack remotely. The patch is identified as 97731871e674bf93bcbf29e9d3258da8685f3076. It is recommended to apply a patch to fix this issue.

Record
UBUNTU-CVE-2025-8262
CVSS 4.0
5.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
yarn
Alpaquita:23
1.22.19-r0 and later None known
yarn
Alpaquita:25
1.22.22-r1 and later None known
yarn
Alpaquita:stream
1.22.19-r0 and later None known
node-yarnpkg
Debian:12
All versions, plus listed versions
1.22.19+~cs24.27.18-21.22.19+~cs24.27.18-2+deb12u11.22.19+~cs24.27.18-31.22.19+~cs24.27.18-44.0.0-rc.53+dfsg-1
Show 13 moreShow less
4.0.1+dfsg-14.0.1+dfsg-24.0.2+dfsg-14.0.2+dfsg-24.0.2+dfsg-34.1.0+dfsg-14.1.0+dfsg-34.1.0+dfsg-44.1.0+dfsg-54.1.0+dfsg-64.1.0+dfsg-74.1.0+dfsg-84.1.0+dfsg-9
None known
node-yarnpkg
Debian:13
All versions, plus listed versions
4.1.0+dfsg-14.1.0+dfsg-34.1.0+dfsg-44.1.0+dfsg-54.1.0+dfsg-64.1.0+dfsg-74.1.0+dfsg-84.1.0+dfsg-9
None known
node-yarnpkg
Debian:14
All versions, plus listed versions
4.1.0+dfsg-14.1.0+dfsg-34.1.0+dfsg-44.1.0+dfsg-54.1.0+dfsg-64.1.0+dfsg-74.1.0+dfsg-84.1.0+dfsg-9
None known
node-yarnpkg
Ubuntu:20.04:LTS
All versions, plus listed versions
1.13.0-1build11.13.0-31.19.1-11.22.4-2
None known
node-yarnpkg
Ubuntu:22.04:LTS
All versions, plus listed versions
1.22.10+~cs22.25.14-31.22.10+~cs22.25.14-41.22.10+~cs22.25.14-51.22.10+~cs22.25.14-8
None known
node-yarnpkg
Ubuntu:24.04:LTS
All versions, plus listed versions
1.22.19+~cs24.27.18-21.22.19+~cs24.27.18-4
None known
node-yarnpkg
Ubuntu:25.10
All versions, plus listed versions
4.0.2+dfsg-34.1.0+dfsg-1
None known
node-yarnpkg
Ubuntu:26.10
All versions, plus listed versions
4.1.0+dfsg-14.1.0+dfsg-6ubuntu24.1.0+dfsg-7ubuntu1
None known
node-yarnpkg
Ubuntu:26.04:LTS
All versions, plus listed versions
4.1.0+dfsg-1
None known

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2025-8262 is a medium vulnerability (CVSS 5.3) in Yarnpkg Yarn, published July 28, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.84%, the 58th percentile. No source names a fixed version.

References

Show 6 moreShow less
MoveEnter Open