next-video: Unauthenticated arbitrary file read via /api/video request handler
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
next-video is a library for adding video to Next.js applications. Prior to 2.8.1, the GET endpoint exported by next-video/request-handler and commonly mounted at /api/video accepts an unauthenticated url query parameter, while src/utils/utils.ts isRemote() treats any value without an HTTP or HTTPS prefix as a local path. src/request-handler.ts passes that value through src/assets.ts getAssetPath() to src/config.ts loadAsset(), which appends a JSON suffix and uses fs.readFile without canonicalizing the path or verifying that it remains inside the configured video folder. A remote attacker can therefore escape the intended asset directory and read JSON files accessible to the application process, including Next.js server-action encryption material, preview-mode keys, build manifests, route metadata, absolute paths, and application video asset identifiers. Applications that do not expose the runtime request handler are not affected through this route. This issue is fixed in version 2.8.1.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| muxinc | next-video | before 2.8.1 | 2.8.1 | Patch available | CNA |
| — | next-video (npm) | before 2.8.1 | 2.8.1 | Patch available | GHSA-2p39-2jf3-fv2q |
- next-video Vendormuxinc Affected before 2.8.1 Fixed in 2.8.1 Patch available CNA
- next-video (npm) Vendor— Affected before 2.8.1 Fixed in 2.8.1 Patch available GHSA-2p39-2jf3-fv2q
Remediation
- Fix · CNA next-video (muxinc) Fixed in 2.8.1
- Fix · GHSA-2p39-2jf3-fv2q next-video (npm) Fixed in 2.8.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-54150
- 2026-10-03 Alias added: GHSA-2p39-2jf3-fv2q
References
Sources
- CVE-2026-54150 · CVE Program
- CVE-2026-54150 · NVD
- FIRST EPSS
- GHSA-2p39-2jf3-fv2q · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences