mirror of
https://github.com/bitbaum/datacat.git
synced 2026-12-04 04:47:31 +01:00
Clears every high in the backend prod graph (pnpm audit --prod: 4 high
-> 0). All four came in through puppeteer 24:
- zod 3.25.76 via chromium-bidi (GHSA-mrhx-c7xc-m3w5): chromium-bidi
in puppeteer 25.16 depends on zod ^4.6.5.
- basic-ftp 5.3.1 via proxy-agent > pac-proxy-agent > get-uri
(GHSA-c475-qrg2-pj4r): @puppeteer/browsers 3 makes proxy-agent an
optional peer, so proxy-agent, get-uri and basic-ftp leave the tree.
No get-uri bump is needed.
- extract-zip 2.0.1 (GHSA-7pqw-9j4j-h8q3, GHSA-jmr9-qjv8-65gv), which
has no fixed release: @puppeteer/browsers 3 uses yauzl directly, so
extract-zip is gone.
puppeteer 25 is ESM-only and needs Node >= 22.12. The backend runs Node
24 (.nvmrc, Dockerfile.backend), where require() loads ES modules, so
`require('puppeteer')` keeps working. headless: 'new' is no longer a
typed value; headless: true launches the same --headless=new mode.
Adds services/websiteIngestionService.test.js: it requires the service
from CommonJS, checks the SSRF guard, and scrapes a page served on
127.0.0.1 with a real Chrome (title, metadata, JPEG screenshot,
content extraction). It fails in CI if the browser download is missing.
Also corrects .claude/CLAUDE.md, which still said the backend has no
tests.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>