Skip to content

fix(deps): pin dayjs to 1.11.13 in frontend tree (CI yarn audit)#2059

Merged
Tanya-atatakai merged 1 commit into
stagingfrom
fix/dayjs-audit-frontend-tree
Jul 2, 2026
Merged

fix(deps): pin dayjs to 1.11.13 in frontend tree (CI yarn audit)#2059
Tanya-atatakai merged 1 commit into
stagingfrom
fix/dayjs-audit-frontend-tree

Conversation

@Tanya-atatakai

Copy link
Copy Markdown
Contributor

Problem

CI yarn audit (both trees) fails in the frontend tree with a HIGH advisory GHSA-52v5-jr5w-gjxr (sigstore <=4.1.0).

Root cause is the dayjs supply-chain compromise: dayjs@1.11.16 was published with semantic-release + @semantic-release/* declared as runtime dependencies (legitimate dayjs has zero runtime deps). That subtree drags in sigstore, tripping the audit gate. This is time-based CI breakage from a newly-published advisory, not caused by any dependency change.

The root package.json already defends against this with a resolution "dayjs": "1.11.13". The frontend resolutions block was missing that pin, so the frontend tree floated up to the compromised 1.11.16.

Fix

  • frontend/package.json — add "dayjs": "1.11.13" to resolutions (mirrors root).
  • frontend/yarn.lock — regenerate: dayjs pinned to 1.11.13, entire accidental semantic-release/sigstore/npm subtree removed.

Verification (local, frontend tree)

  • yarn audit:prod → OK (0 allowlisted, no unlisted high/critical)
  • yarn deps:check-pinned → all specifiers exact-pinned
  • lockfile URLs stay on registry.npmjs.org (lockfile-lint clean)

No source changes — pure lockfile/security fix.

🤖 Generated with Claude Code

…transitive subtree

dayjs@1.11.16 was published with semantic-release + @semantic-release/*
declared as runtime dependencies (legit dayjs has zero runtime deps),
pulling in sigstore <=4.1.0 and tripping the yarn audit gate on the new
HIGH advisory GHSA-52v5-jr5w-gjxr.

The root package.json already pins "dayjs": "1.11.13"; the frontend
resolutions block was missing it, so the frontend tree floated to the
compromised 1.11.16. Mirror the root pin and regenerate the lockfile,
removing the accidental semantic-release/sigstore/npm subtree.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Tanya-atatakai
Tanya-atatakai merged commit ba02ad7 into staging Jul 2, 2026
17 checks passed
@Tanya-atatakai
Tanya-atatakai deleted the fix/dayjs-audit-frontend-tree branch July 2, 2026 15:45
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