CVE-2025-8262

Source
https://cve.org/CVERecord?id=CVE-2025-8262
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-8262.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-8262
Downstream
BELL (1)
CGA (2)
DEBIAN (1)
MINI (1)
UBUNTU (1)
Published
2025-07-28T07:02:05Z
Modified
2026-10-21T02:54:24Z
Severity
  • 5.3 (Medium) CVSS_V4 - CVSS: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 Calculator
Summary
yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos
Details

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.

Database specific
{
    "cna_assigner":  "VulDB",
    "cwe_ids":  [
        "CWE-1333",
        "CWE-400"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/8xxx/CVE-2025-8262.json",
    "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"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/yarnpkg/yarn

Affected ranges

Type
GIT
Repo
https://github.com/yarnpkg/yarn
Events
Database specific
Show details
{
    "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"
        }
    ]
}

Affected versions

1.*
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.*
v1.22.0
v1.22.1
v1.22.10
v1.22.11
v1.22.12
v1.22.13
v1.22.14
v1.22.15
v1.22.16
v1.22.17
v1.22.18
v1.22.19
v1.22.2
v1.22.20
v1.22.21
v1.22.22
v1.22.3
v1.22.4
v1.22.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-8262.json"