{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2025-8262",
        "assignerOrgId": "1af790b2-7ee1-4545-860a-a788eba489b5",
        "state": "PUBLISHED",
        "assignerShortName": "VulDB",
        "dateReserved": "2025-07-26T16:24:06.079Z",
        "datePublished": "2025-07-28T07:02:05.616Z",
        "dateUpdated": "2025-07-28T17:16:45.501Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "1af790b2-7ee1-4545-860a-a788eba489b5",
                "shortName": "VulDB",
                "dateUpdated": "2025-07-28T07:02:05.616Z"
            },
            "title": "yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "cweId": "CWE-1333",
                            "lang": "en",
                            "description": "Inefficient Regular Expression Complexity"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "cweId": "CWE-400",
                            "lang": "en",
                            "description": "Resource Consumption"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "yarnpkg",
                    "product": "Yarn",
                    "versions": [
                        {
                            "version": "1.22.0",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.1",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.2",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.3",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.4",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.5",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.6",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.7",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.8",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.9",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.10",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.11",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.12",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.13",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.14",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.15",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.16",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.17",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.18",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.19",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.20",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.21",
                            "status": "affected"
                        },
                        {
                            "version": "1.22.22",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                },
                {
                    "lang": "de",
                    "value": "Es wurde eine problematische Schwachstelle in yarnpkg Yarn bis 1.22.22 ausgemacht. Es betrifft die Funktion explodeHostedGitFragment der Datei src/resolvers/exotics/hosted-git-resolver.js. Mittels dem Manipulieren mit unbekannten Daten kann eine inefficient regular expression complexity-Schwachstelle ausgenutzt werden. Der Angriff kann über das Netzwerk erfolgen. Der Patch wird als 97731871e674bf93bcbf29e9d3258da8685f3076 bezeichnet. Als bestmögliche Massnahme wird Patching empfohlen."
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "version": "4.0",
                        "baseScore": 5.3,
                        "vectorString": "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",
                        "baseSeverity": "MEDIUM"
                    }
                },
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "baseScore": 4.3,
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C",
                        "baseSeverity": "MEDIUM"
                    }
                },
                {
                    "cvssV3_0": {
                        "version": "3.0",
                        "baseScore": 4.3,
                        "vectorString": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C",
                        "baseSeverity": "MEDIUM"
                    }
                },
                {
                    "cvssV2_0": {
                        "version": "2.0",
                        "baseScore": 4,
                        "vectorString": "AV:N/AC:L/Au:S/C:N/I:N/A:P/E:ND/RL:OF/RC:C"
                    }
                }
            ],
            "timeline": [
                {
                    "time": "2025-07-26T00:00:00.000Z",
                    "lang": "en",
                    "value": "Advisory disclosed"
                },
                {
                    "time": "2025-07-26T02:00:00.000Z",
                    "lang": "en",
                    "value": "VulDB entry created"
                },
                {
                    "time": "2025-07-26T18:29:39.000Z",
                    "lang": "en",
                    "value": "VulDB entry last update"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "mmmsssttt (VulDB User)",
                    "type": "reporter"
                }
            ],
            "references": [
                {
                    "url": "https://vuldb.com/?id.317850",
                    "name": "VDB-317850 | yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos",
                    "tags": [
                        "vdb-entry",
                        "technical-description"
                    ]
                },
                {
                    "url": "https://vuldb.com/?ctiid.317850",
                    "name": "VDB-317850 | CTI Indicators (IOB, IOC, TTP, IOA)",
                    "tags": [
                        "signature",
                        "permissions-required"
                    ]
                },
                {
                    "url": "https://vuldb.com/?submit.617393",
                    "name": "Submit #617393 | Yarn v1.22.22 Inefficient Regular Expression Complexity",
                    "tags": [
                        "third-party-advisory"
                    ]
                },
                {
                    "url": "https://github.com/yarnpkg/yarn/pull/9199",
                    "tags": [
                        "issue-tracking"
                    ]
                },
                {
                    "url": "https://github.com/yarnpkg/yarn/pull/9199/commits/97731871e674bf93bcbf29e9d3258da8685f3076",
                    "tags": [
                        "issue-tracking",
                        "patch"
                    ]
                }
            ]
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2025-07-28T17:13:41.425895Z",
                                "id": "CVE-2025-8262",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-07-28T17:16:45.501Z"
                }
            }
        ]
    }
}