p PatchFirst

CVE-2021-23436

CVE-2021-23436 · Prototype Pollution

CVSS 5.6 · Medium · EPSS 1.8% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

npm ls immer

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

This affects the package immer before 9.0.6. A type confusion vulnerability can lead to a bypass of CVE-2020-28477 when the user-provided keys used in the path parameter are arrays. In particular, this bypass is possible because the condition (p === "__proto__" || p === "constructor") in applyPatches_ returns false if p is ['__proto__'] (or ['constructor']). The === operator (strict equality operator) returns false if the operands have different type.

Published
Updated

Stack: node

Affected products and versions

  • immer

    Versions
    • ≥ unspecified, < 9.0.6: Affected (custom)

    Update to 9.0.6

  • immer npm

    Affected ranges
    • SEMVER: ≥ 7.0.0, < 9.0.6

    Update to 9.0.6

Original sources

Check your server →