js-yaml is vulnerable to Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
47
CVE Score
Medium
Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected versions of this package are vulnerable to Prototype Pollution, where the code insufficiently validates properties during merging by checking only own properties with _hasOwnProperty, allowing attackers to craft malicious YAML input that injects keys like __proto__ or constructor into the object prototype. This vulnerability can lead to remote code execution, denial of service, or other security breaches when the polluted objects are handled in the application.
Upgrade the js-yaml library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
3.0.0 - 3.14.1
Fixed in 3.14.24.0.0 - 4.1.0
Fixed in 4.1.1js-yaml is vulnerable to Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in versions 3.0.0 - 3.14.1 and 4.0.0 - 4.1.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.