Skip to content

chore: fix dependabot security alerts via resolutions - #1796

Merged
cixzhang merged 1 commit into
mainfrom
navi/chore/fix-dependabot-alerts
Apr 25, 2026
Merged

cixzhang merged 1 commit into
mainfrom
navi/chore/fix-dependabot-alerts

Conversation

@cixzhang

@cixzhang cixzhang commented Apr 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Resolves ~20 of 25 open Dependabot security alerts by adding yarn resolutions for vulnerable transitive dependencies and removing a stale package-lock.json.

Changes

Yarn resolutions added

Package Version CVEs Severity
postcss ^8.5.10 XSS via unescaped style tags medium
picomatch ^4.0.4 / ^2.3.2 ReDoS + method injection high + medium
minimatch ^3.1.4 / ^9.0.7 ReDoS (3 separate CVEs) high
brace-expansion ^1.1.13 Infinite loop on zero-step sequence medium

All resolutions target semver-compatible patch ranges — no breaking changes for parent packages.

Stale lockfile cleanup

  • Deleted package-lock.json — this project uses Yarn. The stale npm lockfile was generating duplicate Dependabot alerts for every CVE (14 of 25 alerts came from it alone).
  • Added package-lock.json to .gitignore to prevent it from reappearing.

Remaining alerts (5)

These need separate PRs:

  • vite in internal/vibe-tests/app — pinned to ^5.0.0, needs major bump to 6.x
  • esbuild — transitive via vite 5, resolves when vite is bumped
  • uuid — was only in the deleted package-lock.json, should auto-close

Verification

  • yarn install ✅
  • yarn build ✅
  • yarn test --run ✅ (128 test files, 0 failures)

Add yarn resolutions for vulnerable transitive dependencies:
- postcss ^8.5.10 (XSS via unescaped </style>)
- picomatch ^4.0.4 / ^2.3.2 (ReDoS + method injection)
- minimatch ^3.1.4 / ^9.0.7 (ReDoS)
- brace-expansion ^1.1.13 (infinite loop on zero-step)

Also:
- Delete stale package-lock.json (project uses Yarn)
- Add package-lock.json to .gitignore

Resolves ~20 of 25 open Dependabot alerts.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@xds/core 15.7KB 24.5KB 3.7KB

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@cixzhang
cixzhang merged commit 78c19db into main Apr 25, 2026
17 checks passed
@cixzhang
cixzhang deleted the navi/chore/fix-dependabot-alerts branch April 26, 2026 02:20
zurfyx added a commit that referenced this pull request May 18, 2026
Documentation drift fixes (README and CONTRIBUTING described things that
do not exist):

- Remove `e2e/` row from README Project Structure (no e2e/ directory)
- Remove `e2e/` from CONTRIBUTING Project Structure tree (same)
- Remove `apps/docs/` from CONTRIBUTING Project Structure (no @xds/docs
  workspace exists; the corresponding root `yarn docs` script is also
  removed)
- Update CONTRIBUTING themes line: 12 themes ship today, not 3
- Remove `yarn test:screenshots` reference from CONTRIBUTING (no such
  script in any package.json)

Safety nets:

- Add "preinstall": "npx only-allow yarn" to root package.json so an
  accidental `npm install` from a contributor cannot regenerate
  package-lock.json (which PR #1796 deliberately removed and gitignored).
- Clean stray `-e ` line in .gitignore (artifact from a prior macOS echo).

Legal & contribution scaffolding:

- Add CLA section to CONTRIBUTING.md pointing at https://code.facebook.com/cla
  (matches Lexical's wording). Without this, the first external PR cannot be
  legally merged.
- Add Issues + Meta Bug Bounty section to CONTRIBUTING.md (Lexical pattern).
- Add SECURITY.md pointing to https://bugbounty.meta.com/ for vulnerability
  disclosure. GitHub Community Standards expects this; security researchers
  use it as the authoritative disclosure channel.
zurfyx added a commit that referenced this pull request May 19, 2026
Documentation drift fixes (README and CONTRIBUTING described things that
do not exist):

- Remove `e2e/` row from README Project Structure (no e2e/ directory)
- Remove `e2e/` from CONTRIBUTING Project Structure tree (same)
- Remove `apps/docs/` from CONTRIBUTING Project Structure (no @xds/docs
  workspace exists; the corresponding root `yarn docs` script is also
  removed)
- Update CONTRIBUTING themes line: 12 themes ship today, not 3
- Remove `yarn test:screenshots` reference from CONTRIBUTING (no such
  script in any package.json)

Safety nets:

- Add "preinstall": "npx only-allow yarn" to root package.json so an
  accidental `npm install` from a contributor cannot regenerate
  package-lock.json (which PR #1796 deliberately removed and gitignored).
- Clean stray `-e ` line in .gitignore (artifact from a prior macOS echo).

Legal & contribution scaffolding:

- Add CLA section to CONTRIBUTING.md pointing at https://code.facebook.com/cla
  (matches Lexical's wording). Without this, the first external PR cannot be
  legally merged.
- Add Issues + Meta Bug Bounty section to CONTRIBUTING.md (Lexical pattern).
- Add SECURITY.md pointing to https://bugbounty.meta.com/ for vulnerability
  disclosure. GitHub Community Standards expects this; security researchers
  use it as the authoritative disclosure channel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant