{
  "id": "CVE-2025-8262",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-8262",
  "published_at": "2025-07-28T07:02:05.616Z",
  "title": "yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos",
  "vendor": "yarnpkg",
  "product": "Yarn",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-1333",
  "cpes": [
    "cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 5.3,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "yarnpkg",
        "product": "Yarn",
        "ranges": [
          "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": null
      }
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/yarnpkg/yarn/pull/9199"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/yarnpkg/yarn/pull/9199/commits/97731871e674bf93bcbf29e9d3258da8685f3076"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
