Skip to content

security(deps): unstick the js-yaml and postcss overrides off vulnerable pins - #444

Merged
Ducksss merged 3 commits into
devfrom
security/unstick-js-yaml-postcss
Aug 9, 2026
Merged

Ducksss merged 3 commits into
devfrom
security/unstick-js-yaml-postcss

Conversation

@Ducksss

@Ducksss Ducksss commented Aug 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

Two pnpm.overrides pins had gone stale in exactly the way fast-uri did in #441 — the version that was patched when the override was written now sits inside the advisory's widened range, so the pin was holding the tree on a known-vulnerable version rather than off one.

package pinned advisory vulnerable range patched
js-yaml 4.3.0 GHSA-5p4m-2wfm-xmqj high >= 4.0.0, < 4.3.1 4.3.1
postcss 8.5.18 GHSA-fxqj-rqcc-2cmp medium <= 8.5.22 8.5.23

The js-yaml range key moved too — js-yaml@<4.3.0 → js-yaml@<4.3.1 — so the override still covers everything the advisory does. Bumping only the value would have left 4.3.0 itself unmatched and resolvable.

Why they appeared now

Both were created the moment #437 promoted dev to main. Dependabot only evaluates the default branch, so an advisory that widens while work sits on dev stays invisible until a promote lands. Same reason these will not close until this PR reaches main in turn.

This is the third instance of the same trap, after the postcss split and fast-uri in #441. The failure mode is that a pinned override looks permanently correct — the pin does not move, so nothing signals that the advisory grew around it.

Verification

check result
pnpm lint clean
pnpm format:check clean
pnpm source:build clean
pnpm exec tsc --noEmit clean
pnpm test:int 381 passed, 1 skipped

Lockfile confirms no stale resolutions remain — grep '[email protected]\|[email protected]' pnpm-lock.yaml returns nothing, and every postcss peer chain (tsup, postcss-load-config) re-resolved to 8.5.23.

Diff is 2 files, +30/-30 — the override values plus the lockfile, no source changes.

Scope note

I bumped the two overrides Dependabot currently flags rather than prophylactically re-pinning the whole block. The other eight pins report no open advisory right now, but they carry the same latent staleness, so the block is worth re-auditing on each promote rather than trusting that silence means current.

Hosted required checks remain the acceptance gate — release-gate covers the Tailwind/PostCSS build path that test:int does not.

Summary by CodeRabbit

  • Chores
    • Updated dependency version constraints to address a security vulnerability.
    • Pinned PostCSS to a stable patched version.

…ble pins

Both pins had gone stale the same way fast-uri did in #441: the override
version that was patched when it was written now sits inside the
advisory's widened range, so the pin was holding the tree ON a known
vulnerable version rather than off one.

  js-yaml   pin 4.3.0   GHSA-5p4m-2wfm-xmqj (high)   >= 4.0.0, < 4.3.1
  postcss   pin 8.5.18  GHSA-fxqj-rqcc-2cmp (medium) <= 8.5.22

Bumps js-yaml to 4.3.1 and postcss to 8.5.23, and widens the js-yaml
range key from <4.3.0 to <4.3.1 so the override still covers everything
the advisory does.

Both surfaced on main the moment #437 promoted, because Dependabot only
reports against the default branch. They will not close until this
reaches main in turn.

Verified: lint, format:check, source:build, tsc --noEmit clean, and
381 int tests passing.

Co-Authored-By: Claude Opus 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 9, 2026 11:06
@vercel

vercel Bot commented Aug 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
payload-components Ready Ready Preview Aug 9, 2026 2:35pm
payload-components-97bf Ready Ready Preview Aug 9, 2026 2:35pm

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Aug 9, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@Ducksss, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 56 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 8e95eca7-93f9-4793-92d7-0d5193cbede1

📥 Commits

Reviewing files that changed from the base of the PR and between 71a71e9 and 539c0b7.

📒 Files selected for processing (1)
  • package.json
📝 Walkthrough

Walkthrough

The pull request updates two pnpm dependency overrides in package.json. It pins postcss to 8.5.23 and updates the js-yaml vulnerability range to resolve to 4.3.1.

Changes

Dependency override updates

Layer / File(s) Summary
Update package overrides
package.json
The postcss override now uses 8.5.23. The js-yaml override now targets versions below 4.3.1 and resolves to 4.3.1.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the security dependency override updates for js-yaml and postcss.
Description check ✅ Passed The description provides a detailed summary and verification results; omitted checklist sections are not relevant to this dependency-only change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch security/unstick-js-yaml-postcss

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Ducksss and others added 2 commits August 9, 2026 22:27
#443 caught something this branch missed. postcss is declared TWICE —
as a direct devDependency and as a pnpm override — and the original
commit only moved the override.

Dependabot raised GHSA-fxqj-rqcc-2cmp against both manifest paths for
exactly that reason: one alert on pnpm-lock.yaml (the resolution) and a
second on package.json (the declared devDependency range). The override
already forced the tree to 8.5.23, so nothing was actually resolving
vulnerable — but the declaration was still an exact pin on 8.5.18, and
the package.json alert tracks the declaration.

Also merges origin/dev, which has moved to 1.3.0 (#442, #447, #448,
#449) since this branch was cut.

Verified against current dev: lint, format:check, source:build,
tsc --noEmit, test:registry all clean, and 505 int tests passing.
pnpm install --frozen-lockfile passes, so the lockfile and manifest
agree the way CI checks them.

Co-Authored-By: Claude Opus 5 <[email protected]>

This branch was successfully deployed

2 active deployments
Preview – payload-components-97bf — 539c0b73 Deployed Aug 9, 2026 by vercel[bot]
Preview – payload-components — 539c0b73 Deployed Aug 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants