Skip to content

chore(deps): bump js-yaml to patch quadratic-CPU DoS (superset-frontend) - #43663

Merged
hainenber merged 1 commit into
masterfrom
chore/security-bump-jsyaml-frontend
Aug 29, 2026
Merged

hainenber merged 1 commit into
masterfrom
chore/security-bump-jsyaml-frontend

Conversation

@rusackas

Copy link
Copy Markdown
Member

SUMMARY

Patches Dependabot alerts #1514 and #1513: js-yaml has a quadratic-CPU-consumption DoS in !!omap resolution, affecting both the 3.x and 4.x lines (fixed in 3.15.1 and 4.3.1 respectively).

js-yaml is transitive-only in superset-frontend/package-lock.json — five instances across two major-version lines:

Instance Required by Before After
top-level (dev) @istanbuljs/load-nyc-config, js-yaml-loader 3.15.0 3.15.1
cosmiconfig (dev) cosmiconfig ^4.1.0 4.3.0 4.3.1
lerna (dev) lerna, hard-pinned 4.3.0 4.3.1
react-diff-viewer-continued (runtime) ^4.2.0 4.3.0 4.3.1
stylelint (dev, via its own cosmiconfig) ^4.1.0 4.3.0 4.3.1

Added per-consumer overrides in package.json rather than one blanket override, since the 3.x and 4.x consumers are on incompatible major versions with a different API (safeLoad vs load) — a single global override would force one line onto consumers expecting the other.

TESTING INSTRUCTIONS

Transitive dependency patch only. Confirmed no application code imports js-yaml directly — webpack.config.js references the separate js-yaml-loader package by name (a build-time-only webpack loader for parsing YAML fixtures), not js-yaml itself. No new test needed; existing CI is the regression check.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration
  • Introduces new feature or API
  • Removes existing feature or API

Patches all five transitive js-yaml instances in
superset-frontend/package-lock.json against GHSA quadratic-CPU-consumption
DoS in !!omap resolution (Dependabot alerts #1514, #1513):

- top-level (via @istanbuljs/load-nyc-config, js-yaml-loader): 3.15.0 -> 3.15.1
- cosmiconfig, lerna, react-diff-viewer-continued, stylelint (each via their
  own nested js-yaml): 4.3.0 -> 4.3.1

Added targeted overrides in package.json per consumer rather than a single
blanket override, since the two 3.x consumers and four 4.x consumers are on
incompatible major versions with a different API (safeLoad vs load).

Transitive-only; no application code imports js-yaml directly (webpack.config.js
references the separate js-yaml-loader package by name, itself a build-time-only
webpack loader). No new test needed.
@bito-code-review

bito-code-review Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Bito Automatic Review Skipped - Files Excluded

Bito didn't auto-review this change because all changed files are in the exclusion list for automatic reviews. No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change the excluded files settings here, or contact your Bito workspace admin at [email protected].

@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.21%. Comparing base (30402b4) to head (02a1c25).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #43663   +/-   ##
=======================================
  Coverage   79.21%   79.21%           
=======================================
  Files        2879     2879           
  Lines      166040   166040           
  Branches    38405    38405           
=======================================
  Hits       131536   131536           
  Misses      32025    32025           
  Partials     2479     2479           
Flag Coverage Δ
javascript 74.69% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hainenber
hainenber merged commit 2ca3695 into master Aug 29, 2026
88 checks passed
@hainenber
hainenber deleted the chore/security-bump-jsyaml-frontend branch August 29, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants