Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| yarnpkg | Yarn | 1.22.0, 1.22.1, 1.22.2, 1.22.3, 1.22.4, 1.22.5, 1.22.6, 1.22.7, 1.22.8, 1.22.9, 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.20, 1.22.21, 1.22.22 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-yarnpkg | No fix yet | — |
| Debian 13 | node-yarnpkg | No fix yet | — |
| Debian 12 | node-yarnpkg | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-yarnpkg | No fix yet | — |
| Ubuntu 26.04 LTS | node-yarnpkg | No fix yet | — |
| Ubuntu 25.10 | node-yarnpkg | No fix yet | — |
| Ubuntu 24.04 LTS | node-yarnpkg | No fix yet | — |
| Ubuntu 22.04 LTS | node-yarnpkg | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | node-yarnpkg | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | yarn | No fix yet | — |
References
- VDB-317850 | yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos vdb-entry technical-description
- VDB-317850 | CTI Indicators (IOB, IOC, TTP, IOA) signature permissions-required
- Submit #617393 | Yarn v1.22.22 Inefficient Regular Expression Complexity third-party-advisory
- https://github.com/yarnpkg/yarn/pull/9199 issue-tracking
- https://github.com/yarnpkg/yarn/pull/9199/commits/97731871e674bf93bcbf29e9d3258da8685f3076 issue-tracking patch