CVE-2025-8262: yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos

Published Jul 28, 2025
·
Updated

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 Software

2 affected components
yarnpkg yarn<=1.22.22
yarnpkg yarn<=1.22.22

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade yarnpkg to a version that resolves this vulnerability.

    Fixed in 1.22.22
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 97731871e674bf93bcbf29e9d3258da8685f3076
  3. Configuration

    Apply the patch 97731871e674bf93bcbf29e9d3258da8685f3076 to fix inefficient regular expression complexity in explodeHostedGitFragment (hosted-git-resolver.js) to remediate the remote ReDoS issue.

    yarnpkg (src/resolvers/exotics/hosted-git-resolver.js) explodeHostedGitFragment inefficient regex complexity = patched

Event History

Jul 28, 2025
CVE Published
via MITRE·07:02 AM
Data Sourced
via MITRE·07:02 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 19, 58473
Event
via NVD·09:42 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-8262?

CVE-2025-8262 has been classified as problematic due to its potential impacts on regular expression efficiency.

2

How do I fix CVE-2025-8262?

To fix CVE-2025-8262, upgrade Yarn to a version later than 1.22.22.

3

What versions of Yarn are affected by CVE-2025-8262?

CVE-2025-8262 affects Yarn versions up to and including 1.22.22.

4

What component of Yarn does CVE-2025-8262 impact?

CVE-2025-8262 impacts the explodeHostedGitFragment function in the hosted-git-resolver.js file.

5

What type of vulnerability is CVE-2025-8262?

CVE-2025-8262 is classified as a regular expression complexity vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203