
Proof-of-concept demonstrating prototype pollution in deephas <=1.0.7 (CVE-2026-25047) leading to arbitrary code execution and denial of service, with two bypass techniques.
Exploit Title: deephas <= 1.0.7 - Prototype Pollution leading to Arbitrary Code Execution / DoS
CVE: CVE-2026-25047
GHSA: GHSA-2733-6c58-pf27
CVSS: 9.8 (Critical)
Author: Mohammed Idrees Banyamer
Author Country: Jordan
Contact: Instagram @banyamer_security
Date: February 01, 2026
Tested on: Node.js 16 / 18 / 20 (Linux / macOS / Windows)
The deephas npm package (versions <= 1.0.7) is vulnerable to prototype pollution due to unsafe recursive property assignment in the set() function without proper safeguards against __proto__ and constructor.prototype paths.
An attacker controlling input to deephas.set(obj, path, value) can pollute , potentially leading to:
Object.prototypeprocess.env, require.extensions, or other sensitive globalshasOwnProperty, toString, etc.)This repository contains a clean Proof-of-Concept (PoC) Python script that demonstrates the vulnerability using two bypass techniques:
constructor.prototype path + hasOwnProperty override bypass__proto__ path + indexOf override bypassThe issue was fixed in deephas >= 1.0.8.
References:
npm to install the vulnerable packagegit clone https://github.com/[your-username]/deephas-poc-cve-2026-25047.git
cd deephas-poc-cve-2026-25047
python3 poc-deephas-prototype-pollution.py ```