Skip to content

fix(security): eliminate extract-zip from the Lighthouse dependency graph - #682

Merged
qnbs merged 3 commits into
mainfrom
fix/security-extract-zip-lighthouse-upgrade
Sep 10, 2026
Merged

fix(security): eliminate extract-zip from the Lighthouse dependency graph#682
qnbs merged 3 commits into
mainfrom
fix/security-extract-zip-lighthouse-upgrade

Conversation

@qnbs

@qnbs qnbs commented Sep 10, 2026

Copy link
Copy Markdown
Owner

User description

Purpose

Dependabot #86: extract-zip@2.0.1 (GHSA-7pqw-9j4j-h8q3, high) reachable only via @lhci/cli's hard-pinned lighthouse@12.6.1puppeteer-core@puppeteer/browsers@2.x devDependency chain (not this repo's separate Playwright devDependency). No patched extract-zip release exists.

Fix

@puppeteer/browsers 3.x (pulled in by lighthouse 13.x's puppeteer-core ^25.x) replaced extract-zip with modern-tar entirely. @lhci/cli@0.15.1 is the latest published release and hard-pins lighthouse to an exact version, so a pnpm-workspace.yaml overrides.lighthouse: ">=13.4.1" entry forces the whole chain onto the modern, extract-zip-free stack.

Verification

  • @lhci/cli invokes lighthouse via CLI subprocess (--output json --output-path <path>), not an internal API import — de-risking the major-version jump. lighthouse@13.4.1 keeps the identical package-layout convention as 12.6.1.
  • pnpm why extract-zip returns nothing; zero occurrences in pnpm-lock.yaml.
  • pnpm audit no longer reports the extract-zip advisories (1 moderate remains — the separate, independent adm-zip finding, Dependabot feat: Native File Associations (.storycraft/.scst) and Single-Instance behavior #87, untouched here).
  • lhci healthcheck --fatal passes.
  • A real lighthouse@13.4.1 CLI audit against a live URL succeeded end-to-end (Chrome launch, navigation, full performance audit, valid JSON output).
  • node scripts/check-doc-metrics.mjs and pnpm run ci:prepush both pass locally.

Docs

  • Removes both now-obsolete extract-zip IgnoredVulns entries from src-tauri/osv-scanner.toml.
  • Corrects two historical AUDIT.md entries that misattributed the chain to Playwright instead of Lighthouse CI's own Puppeteer stack.
  • docs/DEPENDABOT-TRIAGE.md updated to record the retirement.

Summary by Sourcery

Eliminate the vulnerable Lighthouse transitive dependency while maintaining Lighthouse CI functionality and aligning project requirements with the upgraded toolchain.

Bug Fixes:

  • Remove the vulnerable extract-zip package and its two associated advisories from the Lighthouse CI dependency graph.

Enhancements:

  • Upgrade the Lighthouse dependency to 13.4.1 and raise the minimum supported Node.js version to 22.19.0.
  • Update dependency security records and historical documentation to reflect the remediated Lighthouse dependency path.

Documentation:

  • Update contributor, deployment, audit, Dependabot triage, and project documentation for the new Node.js requirement and retired vulnerabilities.

Tests:

  • Preserve and document successful Lighthouse CI health checks and end-to-end audit validation after the dependency upgrade.

Chores:

  • Mark the current sprint as complete.

CodeAnt-AI Description

Remove the vulnerable extract-zip package from the Lighthouse CI dependency graph

What Changed

  • Lighthouse CI now uses Lighthouse 13.4.1, whose browser tooling replaces extract-zip with modern-tar
  • The lockfile no longer contains extract-zip or its two associated security advisories
  • Security ignore entries and historical documentation were updated to reflect the remediated dependency path
  • Lighthouse CI health checks and live audits continue to complete successfully

Impact

✅ No extract-zip package in installed dependencies
✅ Security audit no longer flags two extract-zip advisories
✅ Lighthouse audits continue to run successfully

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.


Summary by cubic

Eliminates the vulnerable extract-zip package from the dependency graph by overriding lighthouse to exactly 13.4.1 (which drops extract-zip in favor of modern-tar), and raises the Node floor to 22.19 to match the new Lighthouse requirement.

  • extract-zip@2.0.1 (GHSA-7pqw-9j4j-h8q3 and GHSA-jmr9-qjv8-65gv) had no patched release and was reachable only via @lhci/cli's hard-pinned lighthouse@12.6.1 devDependency chain.
  • The override is exact-pinned because @lhci/cli is only compatibility-tested against 13.4.1.
  • engines.node is now >=22.19.0, and every setup/troubleshooting doc (CONTRIBUTING.md, README.md, docs/DEPLOYMENT.md, infra/low-end-ci/INSTALL.md) advertises the new floor.
  • Verified pnpm why extract-zip returns nothing, pnpm audit shows only the unrelated adm-zip finding, and lhci healthcheck plus a live Lighthouse audit pass.
  • Removed both extract-zip ignored-vuln entries from src-tauri/osv-scanner.toml, corrected two AUDIT.md entries, and added a lighthouse row to the Known Overrides Table.
  • Also flips the TODO.md sprint status marker to done.

Written for commit 8e4c2de. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • Bug Fixes

    • Removed the vulnerable extract-zip package from the resolved dependency graph by requiring Lighthouse 13.4.1 or later.
    • Replaced the affected archive-handling dependency with a maintained alternative, improving security.
  • Documentation

    • Updated release notes and security tracking records to reflect the remediation.
    • Removed obsolete vulnerability exceptions and corrected historical dependency references.

…raph

Dependabot #86 flagged extract-zip@2.0.1 (GHSA-7pqw-9j4j-h8q3, high;
GHSA-jmr9-qjv8-65gv, already-accepted), reachable only via @lhci/cli's
hard-pinned lighthouse@12.6.1 -> puppeteer-core -> @puppeteer/browsers@2.x
devDependency chain. No patched extract-zip release exists, but
@puppeteer/browsers 3.x (pulled in by lighthouse 13.x's puppeteer-core
^25.x) replaced extract-zip with modern-tar entirely.

@lhci/cli@0.15.1 is the latest published release and hard-pins
lighthouse to an exact version, so no parent-package upgrade alone
reaches the fix. A pnpm-workspace.yaml overrides.lighthouse: ">=13.4.1"
entry forces the whole chain onto the modern, extract-zip-free stack.

Verified @lhci/cli invokes lighthouse via CLI subprocess (stable
--output json --output-path contract), not an internal API import, and
lighthouse 13.4.1 keeps the identical package-layout convention as
12.6.1. pnpm why extract-zip now returns nothing; the package has zero
occurrences in pnpm-lock.yaml. Functionally validated: lhci healthcheck
passes, and a real lighthouse CLI audit against a live URL (Chrome
launch, navigation, full performance audit, valid JSON output)
succeeded end-to-end.

Removes both now-obsolete extract-zip IgnoredVulns entries from
src-tauri/osv-scanner.toml, and corrects two historical AUDIT.md
entries that had misattributed the chain to Playwright instead of
Lighthouse CI's own Puppeteer stack.
@sourcery-ai

sourcery-ai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Reviewer's Guide

Eliminates extract-zip from the dependency graph by overriding @lhci/cli’s hard-pinned Lighthouse 12.x dependency to Lighthouse 13.4.1+, causing the Puppeteer browser stack to use modern-tar instead. The lockfile, OSV ignores, audit history, Dependabot triage, and changelog were updated, with CLI compatibility and end-to-end validation recorded.

Sequence diagram for Lighthouse CLI compatibility validation

sequenceDiagram
    participant LHCI as @lhci/cli
    participant Lighthouse as lighthouse@13.4.1
    participant Chrome
    LHCI->>Lighthouse: spawn --output json --output-path <path>
    Lighthouse->>Chrome: launch and navigate
    Chrome-->>Lighthouse: audit results
    Lighthouse-->>LHCI: valid JSON output
    LHCI-->>LHCI: lhci healthcheck --fatal
Loading

File-Level Changes

Change Details Files
Force Lighthouse CI onto an extract-zip-free Lighthouse/Puppeteer dependency chain.
  • Added a workspace override resolving Lighthouse to 13.4.1 or newer.
  • Regenerated the lockfile to replace the Puppeteer browser stack and remove extract-zip entirely.
  • Retained the existing Lighthouse CI CLI-subprocess integration while moving across the Lighthouse major version.
pnpm-workspace.yaml
pnpm-lock.yaml
Remove obsolete security exceptions and correct dependency provenance documentation.
  • Deleted both extract-zip advisories from the OSV scanner ignore configuration.
  • Recorded retirement of the ignores and reduced the tracked Dependabot triage cluster.
  • Corrected historical references that attributed the vulnerable chain to Playwright instead of Lighthouse CI.
src-tauri/osv-scanner.toml
docs/DEPENDABOT-TRIAGE.md
AUDIT.md
Document the remediation and its validation.
  • Added an unreleased changelog entry describing the override and dependency replacement.
  • Documented graph, audit, healthcheck, live Lighthouse, metrics, and pre-push verification results.
CHANGELOG.md
AUDIT.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codeant-ai

codeant-ai Bot commented Sep 10, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR 5c5715d Sep 10, 2026 · 00:25 00:29

@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
worldscript-studio Ready Ready Preview Sep 10, 2026 1:15am UTC

@codeant-ai

codeant-ai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

codescene-access[bot]

This comment was marked as outdated.

@codeant-ai codeant-ai Bot added the size:L This PR changes 100-499 lines, ignoring generated files label Sep 10, 2026
@socket-security

socket-security Bot commented Sep 10, 2026

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: npm @sentry/node-core is 60.0% likely obfuscated

Confidence: 0.60

Location: Package overview

From: pnpm-lock.yamlnpm/@lhci/cli@0.15.1npm/@sentry/node-core@10.73.0

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@sentry/node-core@10.73.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: npm csp_evaluator is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: pnpm-lock.yamlnpm/@lhci/cli@0.15.1npm/csp_evaluator@1.1.8

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/csp_evaluator@1.1.8. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@coderabbitai

coderabbitai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Warning

Review limit reached

Next included review available in 10 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 81 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Essentials

Run ID: 71be6326-138f-42cb-bb86-aa08aad3217f

📥 Commits

Reviewing files that changed from the base of the PR and between 5c5715d and 8e4c2de.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (9)
  • AUDIT.md
  • CHANGELOG.md
  • CONTRIBUTING.md
  • README.md
  • TODO.md
  • docs/DEPLOYMENT.md
  • infra/low-end-ci/INSTALL.md
  • package.json
  • pnpm-workspace.yaml

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Essentials

Run ID: cd47c071-2e0b-44a5-be56-d6a441a3fa44

📥 Commits

Reviewing files that changed from the base of the PR and between a20aa99 and 5c5715d.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (5)
  • AUDIT.md
  • CHANGELOG.md
  • docs/DEPENDABOT-TRIAGE.md
  • pnpm-workspace.yaml
  • src-tauri/osv-scanner.toml

Included review availability: 0 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.


📝 Walkthrough

Walkthrough

The change requires Lighthouse 13.4.1 or newer, removes extract-zip OSV ignores, records the dependency graph remediation, and corrects historical attribution to the Lighthouse/Puppeteer chain.

Changes

extract-zip remediation

Layer / File(s) Summary
Dependency graph and advisory cleanup
pnpm-workspace.yaml, src-tauri/osv-scanner.toml, docs/DEPENDABOT-TRIAGE.md
The workspace requires Lighthouse >=13.4.1. The OSV configuration removes both extract-zip ignores. The triage record documents the reduced ignore count.
Remediation records and history
CHANGELOG.md, AUDIT.md
The changelog records the fix. Audit entries identify the Lighthouse/Puppeteer dependency chain instead of Playwright.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 5c571

The dependency override removes the vulnerable extract-zip path and updates its related advisory records. No merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: removing extract-zip from the Lighthouse dependency graph as a security fix.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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 fix/security-extract-zip-lighthouse-upgrade

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

@sourcery-ai sourcery-ai 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.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="pnpm-workspace.yaml" line_range="102" />
<code_context>
+  # hard-pins lighthouse@12.6.1, which pulls puppeteer-core -> @puppeteer/browsers@2.x ->
+  # extract-zip. lighthouse 13.x's puppeteer-core (^25.x) uses @puppeteer/browsers 3.x, which
+  # replaced extract-zip with modern-tar, eliminating the vulnerable package from the graph.
+  lighthouse: ">=13.4.1"

 peerDependencyRules:
</code_context>
<issue_to_address>
**issue (bug_risk):** The override selects `lighthouse@13.4.1`, whose package requires Node `>=22.19`, while this repository still declares and supports Node `>=22.0.0` and `.nvmrc` contains only `22`; installs or `lhci` runs on Node 22.0–22.18 therefore violate the resolved package's engine contract.

**Triggers:** When a supported environment uses Node 22.0 through 22.18 rather than the latest Node 22 patch release.

**Suggested fix:** Raise the repository's Node floor and pinning documentation to `>=22.19.0`, or select a Lighthouse version compatible with the existing Node `>=22.0.0` support range.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: pnpm-workspace.yaml:102


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread pnpm-workspace.yaml Outdated
@codeant-ai

codeant-ai Bot commented Sep 10, 2026

Copy link
Copy Markdown

🏁 CodeAnt Quality Gate Results

Commit: 8e4c2de4
Scan Time: 2026-09-10 01:17:52 UTC

✅ Overall Status: PASSED

Quality Gate Details

Quality Gate Status Details
Secrets ✅ PASSED 0 secrets found, 39 false positive secrets suppressed
Duplicate Code ✅ PASSED 0.0% duplicated
SAST ✅ PASSED No security issues
Bugs ✅ PASSED Rating S: No bugs
IAC ✅ PASSED Rating S: No issues

View Full Results

@cubic-dev-ai cubic-dev-ai 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.

All reported issues were addressed across 6 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread pnpm-workspace.yaml Outdated
Comment thread AUDIT.md Outdated

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5c5715d097

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pnpm-workspace.yaml Outdated
@codecov

codecov Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

…d override

Three review findings addressed together:

- lighthouse@13.4.1 requires Node >=22.19, but package.json declared
  >=22.0.0 with engineStrict: true - a real contract mismatch. Raised
  engines.node to >=22.19.0 and reconciled CONTRIBUTING.md's Windows
  setup step and docs/DEPLOYMENT.md's Vercel prerequisite to match.
  .nvmrc stays "22" deliberately: actions/setup-node's node-version-file
  resolution always picks the latest available 22.x release, which
  mechanically satisfies >=22.19 without needing an exact pin there.
- Tightened the lighthouse override from ">=13.4.1" to the exact
  "13.4.1" actually compatibility-tested in this PR - @lhci/cli@0.15.1
  is untested against later Lighthouse majors, so an unbounded range
  could silently resolve to an incompatible 14.x/15.x during an
  unrelated future lockfile reconciliation.
- Added a lighthouse row to AUDIT.md's Known Overrides Table, matching
  its existing schema, and updated the two prose mentions of the old
  ">=13.4.1" range to reflect the exact pin.

Also carries forward the deferred Cubic P3 from #681: TODO.md's sprint
status marker was still "in progress" despite every deliverable being
done.

Re-verified after the changes: lighthouse resolves to exactly 13.4.1,
extract-zip remains fully absent, @puppeteer/browsers stays on 3.x,
pnpm audit reports only the separate adm-zip finding, lhci healthcheck
passes, and a real Lighthouse CLI audit against a live URL still
succeeds end-to-end.
codescene-access[bot]

This comment was marked as outdated.

sourcery-ai[bot]
sourcery-ai Bot previously approved these changes Sep 10, 2026

@sourcery-ai sourcery-ai 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.

Sourcery assessment

Approved.

@github-actions

github-actions Bot commented Sep 10, 2026

Copy link
Copy Markdown

[check-pr-size] PR size is over the target tier (normal profile): 11 files (12 total incl. generated), 92 meaningful lines, 3 commits — limit ≤8 files / ≤400 lines / ≤6 commits. Consider splitting into smaller, independently reviewable PRs.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e680c297a8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread package.json
Codex found four more current-state setup/troubleshooting references
still advertising plain Node >=22 after the engine floor was raised:
CONTRIBUTING.md's cross-platform prerequisites line, three README.md
mentions (quick-start, deployment prerequisites, install comment), and
infra/low-end-ci/INSTALL.md's fnm troubleshooting row (also switched to
`fnm install 22 --latest` since a stale locally-installed 22.x would
still fail engineStrict).

@codescene-access codescene-access 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.

No application code in the PR — skipped Code Health checks.

See analysis details in CodeScene

Quality Gate Profile: The Bare Minimum
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

@sourcery-ai sourcery-ai 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.

Sourcery assessment

Approved.

@qnbs
qnbs merged commit 01029d3 into main Sep 10, 2026
40 checks passed
@qnbs
qnbs deleted the fix/security-extract-zip-lighthouse-upgrade branch September 10, 2026 01:41
qnbs added a commit that referenced this pull request Sep 10, 2026
…) (#683)

* docs(security): record exhaustive adm-zip investigation (Dependabot #87)

No code/config change - this is a documentation-only evidence update.
Dependabot #87 (GHSA-vwc7-r8mq-g2x9, adm-zip) was investigated for a
real remediation path, exhaustively:

- No patched adm-zip release exists (GitHub advisory API:
  first_patched_version: null).
- No upgrade path removes it: @huggingface/transformers@4.2.0 (latest
  stable) hard-pins onnxruntime-node as an exact, mandatory dependency,
  and onnxruntime-node@1.29.0 (latest stable) still depends on
  adm-zip@^0.6.0.
- Beyond the existing allowBuilds: onnxruntime-node=false mitigation
  (denies the postinstall script that is adm-zip's only caller), a
  second independent layer was confirmed: @huggingface/transformers's
  own package exports map routes every bundler/browser consumer (Vite,
  for both the PWA build and the Tauri WebView frontend) to
  dist/transformers.web.js, which contains zero real reference to
  onnxruntime-node - only a genuine Node.js require/import resolution
  hits the "node" export condition. This repo has no such code path,
  confirmed via source inspection and this repo's own test suite
  (which explicitly mocks the web build path).
- A narrow onnxruntime-node>adm-zip pnpm override to a stub package
  was considered and rejected: it would add a fake-package maintenance
  burden for a vulnerability already proven unreachable through two
  independent, upstream-supported mechanisms.

Terminal outcome: BLOCKED UPSTREAM / CURRENTLY MITIGATED, not retired.
The existing OSV ignore stays; its comment is expanded with this
evidence trail. Also fixes a stale ">=13.4.1" reference in
docs/DEPENDABOT-TRIAGE.md left over from PR #682's later exact-pin
correction.

* docs(security): correct adm-zip mitigation claims and override wording

Two real issues from review, addressed together:

- Wrongly described adm-zip: ">=0.6.0" as pinning the newest release.
  It is a floor: it permits any future adm-zip version from 0.6.0
  upward and only resolves to 0.6.0 today because that's still the
  newest published version.
- Wrongly framed Vite's browser-build bundling as a second,
  independent install-time mitigation alongside allowBuilds:
  onnxruntime-node=false. The vulnerable operation is adm-zip running
  inside onnxruntime-node's own postinstall script during pnpm
  install's lifecycle-script phase - entirely before any bundler is
  involved. Vite cannot protect against that. allowBuilds is the sole
  install-time mitigation; the bundling fact is separate, independent
  evidence about a different question (whether the shipped app's own
  JS ever imports onnxruntime-node at runtime - it doesn't).

Also corrects the mechanism cited for that separate fact: the
repository's actual protection is a direct vite.config.ts
resolve.alias hardcoding @huggingface/transformers to
dist/transformers.web.js, which bypasses the package's own exports
map entirely - not the exports map itself as previously described.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant