Skip to content

chore(deps-dev): bump js-yaml from 4.1.0 to 4.3.1 - #52

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/js-yaml-4.3.1
Open

chore(deps-dev): bump js-yaml from 4.1.0 to 4.3.1#52
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/js-yaml-4.3.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 11, 2026

Copy link
Copy Markdown

Bumps js-yaml from 4.1.0 to 4.3.1.

Changelog

Sourced from js-yaml's changelog.

4.3.1 - 2026-07-31

Security

  • [backport] Remove quadratic complexity from !!omap duplicate key detection.

4.3.0 - 2026-06-27

Added

  • [backport] Added maxTotalMergeKeys (10000) loader option to limit the total number of keys processed by YAML merge (<<) across one load() / loadAll() call.

Fixed

  • Restore umd builds back to es5.

Removed

  • [backport] maxMergeSeqLength replaced with maxTotalMergeKeys for limiting YAML merge processing.

[4.2.0] - 2026-06-01

Added

  • Added docs/safety.md with 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 after merge fix, 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

... (truncated)

Commits
  • 86e91b8 4.3.1 released
  • c3cc4b0 Backport quadratic complexity fix for !!omap
  • 33d05b5 4.3.0 released
  • 663bfab Drop demo publish, to not override new v5 one.
  • 1cb8c7b Add v4-legacy tag for publish
  • 02f27af Restore umd builds back to es5
  • 8be84ed Fix es5 compatibility
  • 59423c6 Replace maxMergeSeqLength option with maxTotalMergeKeys (more robust). Ba...
  • 6842ef6 doc polish
  • 590dbab 4.2.0 released
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will 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.

Open in Devin Review

Review in cubic

Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.0 to 4.3.1.
- [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.1/CHANGELOG.md)
- [Commits](nodeca/js-yaml@4.1.0...4.3.1)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.3.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Aug 11, 2026
@greptile-apps

greptile-apps Bot commented Aug 11, 2026

Copy link
Copy Markdown

PR author is in the excluded authors list.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Open in Devin Review

Comment thread package.json
"devDependencies": {
"@redocly/cli": "2.40.0",
"js-yaml": "4.1.0",
"js-yaml": "4.3.1",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Automated checks still install the old library version, so the upgrade has no effect in CI

The version bump was applied to the project's dependency list but not to the continuous-integration step, which still installs the old 4.1.0 build (npm install ... js-yaml@4.1.0 at .github/workflows/foundation-gate.yml:59), so the checks keep running against the outdated copy.
Impact: The security and correctness fixes from the new version are never exercised in CI, and the version actually used there silently diverges from the one declared for the project.

Incomplete version bump: package.json vs foundation-gate workflow

package.json:13 and package-lock.json were updated to js-yaml@4.3.1, but the spec-lint job installs its own copy with npm install --no-save --no-audit --no-fund js-yaml@4.1.0 before running .github/scripts/assert-refs.mjs, which imports js-yaml (.github/scripts/assert-refs.mjs:36). The pinned CI version should be bumped in lockstep.

Prompt for agents
The dependency bump of js-yaml from 4.1.0 to 4.3.1 in package.json/package-lock.json was not applied to .github/workflows/foundation-gate.yml, where the spec-lint job explicitly installs js-yaml@4.1.0 (line 59) before running .github/scripts/assert-refs.mjs. Update the pinned version in the workflow so CI uses the same version as the project manifest, and check for any other hardcoded js-yaml versions in the repo.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread package.json
"devDependencies": {
"@redocly/cli": "2.40.0",
"js-yaml": "4.1.0",
"js-yaml": "4.3.1",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Behavior changes in 4.2.0 could affect spec parsing

The lockfile shows @redocly/cli also resolves to js-yaml@4.3.1, so both the direct dev dependency and the linter's transitive copy now share the newer parser. 4.2.0 changed scalar resolution (numbers with underscores are no longer numeric), added a maxDepth limit of 100, and rejects top-level block scalars without content indentation. openapi.yaml is parsed by .github/scripts/assert-refs.mjs:36 and by redocly, so if the spec ever contains deeply nested structures or underscore-formatted numeric literals the parse result could differ from before. Worth a quick CI run to confirm lint and $ref assertions still pass.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread package.json
"devDependencies": {
"@redocly/cli": "2.40.0",
"js-yaml": "4.1.0",
"js-yaml": "4.3.1",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟨 CI still pins the pre-patch YAML parser version

The dependency was upgraded to 4.3.1 in package.json:13 (which includes DoS/quadratic-complexity fixes for YAML merge and !!omap), but the spec-lint CI job still installs the old 4.1.0 build (npm install ... js-yaml@4.1.0 at .github/workflows/foundation-gate.yml:59) before parsing openapi.yaml via .github/scripts/assert-refs.mjs. CI therefore keeps parsing repo YAML with the unpatched parser.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@cursor
cursor Bot requested a review from yakimoto August 11, 2026 23:02

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: low. Left a non-blocking comment because Cursor Security Agent skipped (Bugbot was not present), so this needs human review. Assigned yakimoto as reviewer.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@wave-bugbot

wave-bugbot Bot commented Aug 12, 2026

Copy link
Copy Markdown

🟢 WAVE BugBot — clear

No confident findings on the changed lines.

Local review · $0 inference · wave-dispatch

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

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants