fix(deps): upgrade yaml to 2.9.0 - #263
Open
pavel-snyk wants to merge 1 commit into
Open
pavel-snyk wants to merge 1 commit into
pavel-snyk wants to merge 1 commit into
Conversation
Contributor
Author
|
This is a minor version upgrade that the author notes consists of only patch-level changes. The primary change is a documentation update to clarify that parsing functions may throw errors on malicious input, which was always a possibility. The release also includes fixes to prevent call stack exhaustion on very large or complex inputs. No breaking API changes are documented. Source: Release notes
|
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade yaml from 2.8.1 to 2.9.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 4 versions ahead of your current version.
The recommended version was released 4 months ago.
Issues fixed by the recommended upgrade:
SNYK-JS-YAML-15765520
Breaking Change Risk
Release notes
Package name: yaml
-
2.9.0 - 2026-05-11
- fix: Avoid calling
- fix(lexer): Avoid recursive calls that may exhaust the call stack
-
2.8.4 - 2026-05-02
- Disable alias resolution with
- Handle invalid unicode escapes (e1a1a77)
- Apply
-
2.8.3 - 2026-03-21
- Add
- Catch stack overflow during node composition (1e84ebb)
-
2.8.2 - 2025-11-30
- Serialize -0 as -0 (#638)
- Do not double newlines for empty map values (#642)
-
2.8.1 - 2025-08-05
- Preserve empty block literals (#634)
from yaml GitHub release notesThe changes here are really only patches, but I'm releasing this as a minor version to note a small change to the documentation of
parseDocument()andparseAllDocuments(): I've removed the claim that they'll "never throw".It remains the case that practically all non-malicious inputs will be handled without emitting an error, but there is a decent chance that code paths remain where e.g. a RangeError due to call stack exhaustion can be triggered by malicious inputs. Up to now, I've considered these as security vulnerabilities, and in fact it's the only category of error for which
yamlCVEs have been issued so far.Starting from this release, I'll be considering such errors as bugs, but not vulnerabilities. I do welcome people and/or LLMs looking for them, but please report them as normal issues rather than suspected security vulnerabilities. This also applies to previously undiscovered bugs in earlier releases.
Array.prototype.push.apply()with large source arraymaxAliasCount:0(#677)minFractionDigitsonly to decimal strings (#676)trailingCommaToString option for multiline flow formatting (#670)Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
Note
Low Risk
Lockfile-only dependency bump with no application code changes; lowers YAML parsing abuse risk wherever
yamlis used on untrusted input.Overview
Bumps the
yamlruntime dependency from 2.8.1 to 2.9.0 inpackage.jsonand refreshespackage-lock.json(resolved tarball, integrity hash, and package metadata such as funding).This is a Snyk-driven security upgrade aimed at SNYK-JS-YAML-15765520 (uncontrolled recursion / call-stack exhaustion during parsing). 2.9.0 includes lexer and array-handling hardening around those paths; there are no other repo changes beyond the version pin.
Reviewed by Cursor Bugbot for commit 6365a77. Bugbot is set up for automated code reviews on this repo. Configure here.