Object prototype modification via unsafe recursive merge
Published Jan 7, 2023 · Updated Nov 25, 2024
Prototype pollution in Yomguithereal Baobab 2.0 through 2.6.0 allows attackers to modify Object.prototype via crafted merge data. The deepMerge helper recursively traverses enumerable keys and, before the fix, treats proto, constructor, and prototype as ordinary merge keys. Exploitation requires a consuming application to pass attacker-controlled objects to deepMerge; polluted properties then affect other objects in that JavaScript process.
Summary
What happened
Prototype pollution in Yomguithereal Baobab 2.0 through 2.6.0 allows attackers to modify Object.prototype via crafted merge data. The deepMerge helper recursively traverses enumerable keys and, before the fix, treats proto, constructor, and prototype as ordinary merge keys. Exploitation requires a consuming application to pass attacker-controlled objects to deepMerge; polluted properties then affect other objects in that JavaScript process.
The record
- CVE
- CVE-2021-4307
- Published
- Jan 7, 2023
- Updated
- Nov 25, 2024
- Vendor
- Yomguithereal
- Product
- Baobab
- Classifications
- CWE-1321, CAPEC-180, CAPEC-77, CAPEC-1
- Attack vector
- network
- Privileges
- Unavailable
Timeline
How it unfolded
- Jan 7, 2023CVE publishedPublication date reported by the CVE source.
- Nov 25, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=2.0
- Affected versionversion=2.1
- Affected versionversion=2.2
- Affected versionversion=2.3
- Affected versionversion=2.4
- Affected versionversion=2.5
- Affected versionversion=2.6
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Baobab deepMerge prototype-pollution proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo