Bump js-yaml from 4.1.0 to 4.2.0
DE
4mo ago+13+13+01234567890123456789-387-387-012345678901234567890123456789
Bumps js-yaml from 4.1.0 to 4.2.0.
Changelog
Sourced from js-yaml's changelog.
[4.2.0] - 2026-06-01
Added
- Added
docs/safety.mdwith notes about processing untrusted YAML.- Added
maxDepth(100) loader option. Not a problem, but gives a better exception instead of RangeError on stack overflow.- Added
maxMergeSeqLength(20) loader option. Not a problem aftermergefix, but an additional restriction for safety.- Added sourcemaps to
dist/builds.Changed
- Stop resolving numbers with underscores as numeric scalars, #627.
- Switched dev toolchains to Vite / neostandard.
- Updated demo.
- Reorganized tests.
dist/files are no longer kept in the repository.Fixed
- Fix parsing of properties on the first implicit block mapping key, #62.
- Fix trailing whitespace handling when folding flow scalar lines, #307.
- Reject top-level block scalars without content indentation, #280.
- Ensure numbers survive round-trip, #737.
- Fix test coverage for issue #221.
- Fix flow scalar trailing whitespace folding, #307.
- Fix digits in YAML named tag handles.
Security
- Fix potential DoS via quadratic complexity in merge - deduplicate repeated elements (makes sense for malformed files > 10K).
[3.14.2] - 2025-11-15
Security
- Backported v4.1.1 fix to v3
[4.1.1] - 2025-11-12
Security
- Fix prototype pollution issue in yaml merge (<<) operator.
Commits
590dbab4.2.0 releasedf944dc5Add package.json funding fieldf692719Changelog update9971a06Fix digits in YAML named tag handles464a5b8Fix flow scalar trailing whitespace folding, close #3071fda4f7Tests for #567, #565031ad07Stop resolving numbers with underscores as numeric scalars, #627e46d223CI config update9023feeAdd lockfile990e6f4Docs update- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the Security Alerts page.
Summary by cubic
Upgrade js-yaml to 4.2.0 for security hardening and stricter, more predictable YAML parsing. This adds safer loader defaults and fixes several parsing edge cases.
-
Dependencies
- Bumped
js-yaml4.1.0 → 4.2.0. - Includes security fixes (merge DoS/prototype pollution), new loader limits (
maxDepth100,maxMergeSeqLength20), and no longer treats numbers with underscores as numeric scalars.
- Bumped
-
Migration
- YAML values like 1_000 now parse as strings; update data or normalize after parsing if needed.
- For very deep or large merged YAML, raise
maxDepth/maxMergeSeqLengthvia loader options if you hit limits.