Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency immer to 9.0.6 [security] #263

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Feb 9, 2022

WhiteSource Renovate

This PR contains the following updates:

Package Change
immer 7.0.9 -> 9.0.6

GitHub Vulnerability Alerts

CVE-2020-28477

Overview

Affected versions of immer are vulnerable to Prototype Pollution.

Proof of exploit

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 for this vulnerability, updating is recommended.

CVE-2021-23436

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.

CVE-2021-3757

immer is vulnerable to Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')


Configuration

📅 Schedule: "" (UTC).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@stormkit-io
Copy link

stormkit-io bot commented Feb 9, 2022

Deployment completed

This pull request was successfully built on Stormkit. You can preview it using the following link.

https://app-53036651807995.stormkit.dev

@renovate renovate bot force-pushed the renovate/npm-immer-vulnerability branch 2 times, most recently from 7ba228c to 4a690da Compare February 9, 2022 19:57
@stormkit-io
Copy link

stormkit-io bot commented Feb 9, 2022

Deployment completed

This pull request was successfully built on Stormkit. You can preview it using the following link.

https://app-53044875819750.stormkit.dev

@stormkit-io
Copy link

stormkit-io bot commented Feb 9, 2022

Deployment completed

This pull request was successfully built on Stormkit. You can preview it using the following link.

https://app-53048165424452.stormkit.dev

@renovate renovate bot force-pushed the renovate/npm-immer-vulnerability branch from 4a690da to ddf81fb Compare February 9, 2022 20:05
@stormkit-io
Copy link

stormkit-io bot commented Feb 9, 2022

Deployment completed

This pull request was successfully built on Stormkit. You can preview it using the following link.

https://app-53053099831505.stormkit.dev

@renovate renovate bot force-pushed the renovate/npm-immer-vulnerability branch from ddf81fb to 746977c Compare February 9, 2022 20:44
@stormkit-io
Copy link

stormkit-io bot commented Feb 9, 2022

Deployment completed

This pull request was successfully built on Stormkit. You can preview it using the following link.

https://app-53067903052664.stormkit.dev

@svedova
Copy link
Contributor

svedova commented Feb 9, 2022

This branch has a conflict. Closing this PR.

@svedova svedova closed this Feb 9, 2022
@svedova svedova deleted the renovate/npm-immer-vulnerability branch February 9, 2022 20:47
@renovate
Copy link
Author

renovate bot commented Feb 15, 2022

Renovate Ignore Notification

As this PR has been closed unmerged, Renovate will now ignore this update (9.0.6). You will still receive a PR once a newer version is released, so if you wish to permanently ignore this dependency, please add it to the ignoreDeps array of your renovate config.

If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants