QID 980769
QID 980769: Nodejs (npm) Security Update for js-yaml (GHSA-xxvw-45rp-3mj2)
Versions 2.0.4 and earlier of `js-yaml` are affected by a code execution vulnerability in the YAML deserializer.
## Proof of Concept
```
const yaml = require('js-yaml');
const x = `test: !!js/function >
function f() {
console.log(1);
}();`
yaml.load(x);
```
## Recommendation
Update js-yaml to version 2.0.5 or later, and ensure that all instances where the `.load()` method is called are updated to use `.safeLoad()` instead.
Successful exploitation of this vulnerability may affect the confidentiality, integrity, and availability of the targeted user.
Solution
Customers are advised to refer to GHSA-xxvw-45rp-3mj2 for updates pertaining to this vulnerability.
Vendor References
- GHSA-xxvw-45rp-3mj2 -
github.com/advisories/GHSA-xxvw-45rp-3mj2
CVEs related to QID 980769
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-xxvw-45rp-3mj2 | js-yaml |
|