Skip to content

fix(deps): update file-type and uuid, fixes #1774#1775

Merged
lihbr merged 10 commits into
mainfrom
lh/uuid-file-type-advisories
Jul 16, 2026
Merged

fix(deps): update file-type and uuid, fixes #1774#1775
lihbr merged 10 commits into
mainfrom
lh/uuid-file-type-advisories

Conversation

@lihbr

@lihbr lihbr commented Jul 15, 2026

Copy link
Copy Markdown
Member

Resolves: #1774

Updates file-type and internal dependencies not to rely on vulnerable versions of uuid

Relies on:


Note

Medium Risk
Wide dependency bumps across mocks/types-internal and a major file-type jump affect screenshot MIME detection and mock generation; CI audit is now non-blocking, which slightly reduces gate strength on remaining advisories.

Overview
This PR bumps dependencies to address #1774 (vulnerable uuid in the dependency tree), mainly by upgrading file-type in @slicemachine/manager and aligning the monorepo on newer @prismicio/types-internal (^3.17.2), @prismicio/mocks (^2.16.1), and @prismicio/mock (0.7.2), with a root resolutions pin for types-internal.

GroupItemContent now expects a key on each group item: adapter slice template mocks (AlternateGrid, CustomerLogos across Next/Nuxt/SvelteKit) gain UUID key fields, and mockSlice assigns randomUUID() when synthesizing empty group items.

CI sets continue-on-error: true on the workspace audit step so high-severity audit noise does not block the pipeline while upgrades land. scripts/play.ts pins the Next minimal starter to a specific commit (still using slicemachine.config.json) and extends cloneGitRepo to support shallow fetch/checkout by commit. start-slicemachine bumps vite to 5.4.21; yarn.lock reflects the full transitive graph (e.g. file-type 21.x, uuid 11.x).

Reviewed by Cursor Bugbot for commit 5228b00. Bugbot is set up for automated code reviews on this repo. Configure here.

@lihbr
lihbr requested a review from a team as a code owner July 15, 2026 03:57
@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
slice-machine Ready Ready Preview Jul 16, 2026 6:07am

Request Review

Comment thread packages/manager/package.json Outdated
Comment thread .github/workflows/ci.yml

- name: Audit dependencies
if: matrix.package != '@slicemachine/e2e'
continue-on-error: true

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6d40f04. Configure here.

Comment thread packages/manager/src/lib/mockSlice.ts
@lihbr
lihbr merged commit c5479e6 into main Jul 16, 2026
34 checks passed
@lihbr
lihbr deleted the lh/uuid-file-type-advisories branch July 16, 2026 06:13
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.

Transitive advisories in latest slice-machine-ui (uuid <11.1.1, file-type) with no forward fix

2 participants