Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/immer@6.0.0-alpha.3
purl pkg:npm/immer@6.0.0-alpha.3
Next non-vulnerable version 9.0.6
Latest non-vulnerable version 9.0.6
Risk 4.5
Vulnerabilities affecting this package (3)
Vulnerability Summary Fixed by
VCID-2xa5-ggz7-uudj
Aliases:
CVE-2021-3757
GHSA-c36v-fmgq-m8hx
Improperly Controlled Modification of Dynamically-Determined Object Attributes immer is vulnerable to Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
9.0.6
Affected by 0 other vulnerabilities.
VCID-48k4-6btj-9kha
Aliases:
CVE-2021-23436
GHSA-33f9-j839-rf8h
Access of Resource Using Incompatible Type (Type Confusion) 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.
9.0.6
Affected by 0 other vulnerabilities.
VCID-akqv-e39m-hye2
Aliases:
CVE-2020-28477
GHSA-9qmh-276g-x5pj
Prototype Pollution in immer ## Overview Affected versions of immer are vulnerable to Prototype Pollution. ## Proof of exploit ```js const {applyPatches, enablePatches} = require("immer"); enablePatches(); let obj = {}; console.log("Before : " + obj.polluted); applyPatches({}, [ { op: 'add', path: [ "__proto__", "polluted" ], value: "yes" } ]); // applyPatches({}, [ { op: 'replace', path: [ "__proto__", "polluted" ], value: "yes" } ]); console.log("After : " + obj.polluted); ``` ## Remediation Version 8.0.1 contains a [fix](https://github.com/immerjs/immer/commit/da2bd4fa0edc9335543089fe7d290d6a346c40c5) for this vulnerability, updating is recommended.
8.0.1
Affected by 2 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-16T21:30:40.832860+00:00 GitLab Importer Affected by VCID-2xa5-ggz7-uudj https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/immer/CVE-2021-3757.yml 38.4.0
2026-04-16T21:30:29.966981+00:00 GitLab Importer Affected by VCID-48k4-6btj-9kha https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/immer/CVE-2021-23436.yml 38.4.0
2026-04-16T21:16:03.004027+00:00 GitLab Importer Affected by VCID-akqv-e39m-hye2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/immer/CVE-2020-28477.yml 38.4.0
2026-04-11T22:43:48.211329+00:00 GitLab Importer Affected by VCID-2xa5-ggz7-uudj https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/immer/CVE-2021-3757.yml 38.3.0
2026-04-11T22:43:36.791980+00:00 GitLab Importer Affected by VCID-48k4-6btj-9kha https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/immer/CVE-2021-23436.yml 38.3.0
2026-04-11T22:28:10.731672+00:00 GitLab Importer Affected by VCID-akqv-e39m-hye2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/immer/CVE-2020-28477.yml 38.3.0
2026-04-02T22:53:53.454346+00:00 GitLab Importer Affected by VCID-2xa5-ggz7-uudj https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/immer/CVE-2021-3757.yml 38.1.0
2026-04-02T22:53:43.429921+00:00 GitLab Importer Affected by VCID-48k4-6btj-9kha https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/immer/CVE-2021-23436.yml 38.1.0
2026-04-02T22:39:48.623173+00:00 GitLab Importer Affected by VCID-akqv-e39m-hye2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/immer/CVE-2020-28477.yml 38.1.0
2026-04-01T17:12:07.798675+00:00 GitLab Importer Affected by VCID-2xa5-ggz7-uudj https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/immer/CVE-2021-3757.yml 38.0.0
2026-04-01T17:11:56.714543+00:00 GitLab Importer Affected by VCID-48k4-6btj-9kha https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/immer/CVE-2021-23436.yml 38.0.0
2026-04-01T16:57:14.411280+00:00 GitLab Importer Affected by VCID-akqv-e39m-hye2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/immer/CVE-2020-28477.yml 38.0.0