deps: override seroval to ^1.5.3 for CVE-2026-59940 - #296
Conversation
* pin seroval/seroval-plugins via pnpm.overrides, lifting the transitive asciinema-player > solid-js > seroval@1.3.2 to 1.5.5. * vulnerable fromJSON() was unreachable: no first-party call sites, and solid-js imports only serializer APIs in its SSR-only entry, which this Go-served app never bundles.
|
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.
|
There was a problem hiding this comment.
Pull request overview
Updates the frontend dependency graph to mitigate CVE-2026-59940 by forcing seroval and seroval-plugins to resolve to a safe version range via pnpm.overrides, ensuring transitive consumers (e.g., solid-js) no longer pull seroval@1.3.2.
Changes:
- Added
pnpm.overridesentries forserovalandseroval-plugins(^1.5.3) inpackage.json. - Regenerated
pnpm-lock.yamlto reflect resolution toseroval@1.5.5/seroval-plugins@1.5.5and updated related snapshot entries.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Adds pnpm.overrides for seroval and seroval-plugins to enforce upgraded transitive resolution. |
| pnpm-lock.yaml | Locks the overridden packages to 1.5.5 and updates the dependency snapshots (including solid-js) accordingly. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/review AI review started. |
Advanced AI Review
Click to expand reviewI reviewed the change thoroughly, verifying the security claims, dependency tree, lockfile consistency, and reachability of the vulnerable code. Verification performed
FindingsThe code change itself (the two lines added to 1. ⚪️ PR/commit title omits
|
|
@taoeffect approved! ✅ |
Fixes seroval:
seroval.fromJSON()Promise resolver type confusion invokes attacker-controlled methods during deserializationAI Disclosure
Co-authored with: Opus 5