Skip to content

chore(deps): book the four advisories published today - #128

Merged
Ardnived merged 1 commit into
mainfrom
chore/audit-new-advisories
Aug 8, 2026
Merged

Ardnived merged 1 commit into
mainfrom
chore/audit-new-advisories

Conversation

@Ardnived

@Ardnived Ardnived commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Four high advisories were published on 2026-08-07 against the existing lockfile — two in image-size, two in nanoid — with no dependency change on our side. The audit gate from #99 correctly went red, and took every open PR with it: #123, #125, #126 and #127 all fail identically on work that touches neither package. (#124 predates the publication and passed.)

This books all four in one place, which is the alternative to three concurrent PRs each adding the same entries and conflicting.

Neither package reaches the browser — verified, not assumed

Built the bundle and grepped dist/:

Package Path In dist/?
image-size @payloadcms/sdk → payload No
nanoid tailwind-variants → tailwindcss (peer) → postcss No

payload is a types-only dependency — its dist imports only qs-esm at runtime (.claude/rules/data-layer.md) — and nothing in this app parses an image header. postcss runs at build time. The single nanoid string in the bundle is zod's .nanoid() validator name, not the package.

Why baseline rather than fix

  • image-size — no patched version published.
  • nanoid — patched in >=3.3.17, but the lockfile holds 3.3.8 under [email protected]'s own pin, and pnpm update nanoid will not move it. Forcing it needs a pnpm.overrides entry for a build-time DoS that cannot be reached from our usage; it comes for free when postcss moves under chore(deps): update vulnerable deps and fix dompurify config #101. Adding an override now would be more maintenance surface than the risk warrants.

Both are booked against #101, which already owns the dependency debt and the other twenty-three build-time transitives in this file. Each entry carries its own reasoning so the next reader can re-judge rather than inherit a bare id.

Acceptance criteria

  • pnpm audit:check reports 0 new advisories (was 4)
  • Only scripts/audit-baseline.json changes — no lockfile, no package.json
  • Absence from dist/ verified by build + grep, and the verification recorded in the entries
  • Lint + typecheck clean

Files affected

  • scripts/audit-baseline.json

Unblocks #123, #125, #126, #127.

Four high advisories landed on 2026-08-07 against the existing lockfile
— two in image-size, two in nanoid — with no dependency change on our
side. The audit gate correctly went red, which turned every open PR red
with it: #123 through #127 all fail identically on work that touches
neither package.

Neither reaches the browser, and that is verified rather than assumed —
built the bundle and grepped dist/. image-size arrives only through
@payloadcms/sdk > payload, a types-only dependency whose dist imports
just qs-esm at runtime, and nothing here parses an image header. nanoid
arrives through tailwindcss > postcss, which runs at build time; the one
`nanoid` string in the bundle is zod's `.nanoid()` validator name, not
the package.

Both nanoid advisories have a fix (>=3.3.17) but the lockfile holds
3.3.8 under postcss 8.4.38's own pin, so it arrives free when postcss
moves under #101 rather than justifying an override now. image-size has
no published fix at all.

Baselined against #101, which owns the dependency debt, with the
reasoning recorded per entry so the next reader can re-judge it.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying sahajatlas with  Cloudflare Pages  Cloudflare Pages

Latest commit: d1f4c8d
Status: ✅  Deploy successful!
Preview URL: https://147315e7.sahajatlas.pages.dev
Branch Preview URL: https://chore-audit-new-advisories.sahajatlas.pages.dev

View logs

@Ardnived
Ardnived merged commit e316117 into main Aug 8, 2026
5 checks passed
@Ardnived
Ardnived deleted the chore/audit-new-advisories branch August 8, 2026 00:03
Ardnived added a commit that referenced this pull request Aug 8, 2026
Conflict in scripts/audit-baseline.json: this branch baselined the four
2026-08-07 advisories to get its own CI green, and #128 then landed the
same four as a dedicated change. Took main's version wholesale — same
four ids, fuller per-entry reasoning, and one owner for the file rather
than an audit decision buried in a perf diff.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
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.

1 participant