Skip to content

[Snyk] Security upgrade js-cookie from 2.2.1 to 3.0.7#3346

Open
prodsecmachine wants to merge 1 commit into
masterfrom
snyk-fix-f09202519ec087c09993288e38802f40
Open

[Snyk] Security upgrade js-cookie from 2.2.1 to 3.0.7#3346
prodsecmachine wants to merge 1 commit into
masterfrom
snyk-fix-f09202519ec087c09993288e38802f40

Conversation

@prodsecmachine

Copy link
Copy Markdown

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • package.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Prototype Pollution
SNYK-JS-JSCOOKIE-17816999
  721  

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Prototype Pollution

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-JSCOOKIE-17816999
@prodsecmachine prodsecmachine requested a review from a team as a code owner July 5, 2026 08:04
@prodsecmachine

Copy link
Copy Markdown
Author

Merge Risk: High

This major version upgrade from js-cookie v2 to v3 introduces significant breaking changes that require developer action.

Key Breaking Changes:

  • JSON Handling Removed: The Cookies.getJSON() method and automatic JSON stringification in Cookies.set() have been removed. Developers must now manually stringify and parse JSON objects.
    • Before: Cookies.set('foo', { bar: 'baz' })
    • After: Cookies.set('foo', JSON.stringify({ bar: 'baz' }))
  • Configuration API Changed: The Cookies.defaults property has been removed. To set default attributes for cookies, you must now use the Cookies.withAttributes() method to create a new instance.
  • ES Module Support: The package now provides an ES module build, which may affect bundlers and import statements.
  • Browser Support: Support for Internet Explorer versions older than 10 has been dropped.

Recommendation:
Code using Cookies.getJSON() or setting objects directly with Cookies.set() must be refactored to handle JSON manually. Any global default configurations must be updated to use the new Cookies.withAttributes() API.

Source: GitHub Releases

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

@prodsecmachine prodsecmachine requested a review from reakaleek July 5, 2026 08:04
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

A documentation preview will be available soon.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here.

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.

2 participants