Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.

[Snyk] Security upgrade js-yaml from 3.8.4 to 4.1.1#3

Open
LoganLynd wants to merge 1 commit into
masterfrom
snyk-fix-5a4e40fd28764277c65188b7364c9f83
Open

[Snyk] Security upgrade js-yaml from 3.8.4 to 4.1.1#3
LoganLynd wants to merge 1 commit into
masterfrom
snyk-fix-5a4e40fd28764277c65188b7364c9f83

Conversation

@LoganLynd

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
  • package-lock.json

Merge Risk: High

This major version upgrade introduces significant breaking changes to improve security and align with the YAML 1.2 specification.

Breaking Changes:

  • The safeLoad, safeLoadAll, and safeDump functions have been removed. You must replace them with load, loadAll, and dump, which are now safe by default. [1, 4, 7]
  • Unsafe features like deserializing functions (!!js/function) have been removed from the default load and moved to a separate package (js-yaml-js-types) to prevent arbitrary code execution. [1, 4]

Source: js-yaml Changelog [1]
Recommendation: All calls to safeLoad() and safeDump() must be renamed to load() and dump() respectively. Review any usage of the old, unsafe load() as it will now fail unless the schema is explicitly extended.

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


Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Prototype Pollution
SNYK-JS-JSYAML-13961110
  66  

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants