Advisory

GHSA-5vj8-3v2h-h38v

Also known as: None

Summary

Remote Code Execution in next

Details

Versions of next prior to 5.1.0 are vulnerable to Remote Code Execution. The /path: route fails to properly sanitize input and passes it to a require() call. This allows attackers to execute JavaScript code on the server. Note that prior version 0.9.9 package next npm package hosted a different utility (0.4.1 being the latest version of that codebase), and this advisory does not apply to those versions.

Recommendation

Upgrade to version 5.1.0.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-04 18:04 UTC
Modified
2022-04-28 19:57 UTC

Affected packages and fixes

next

npm · All systems

Affected

  • introduced 0.9.9, fixed 5.1.0 (semver)

Fixed versions

5.1.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences