Cybersecurity news

Jessica Doner

Back to the list

Critical Next.js ImageResponse Flaw Can Lead to Server Code Execution via Crafted SVG Input

The Hacker News,

A security flaw in Next.js allowed attackers to run code on servers by crafting specific image inputs, a problem fixed by the developer.

Vulnerabilities and patches

Overview

Vercel fixed a critical security flaw in Next.js that allowed attackers to run code on a serverA computer or program on a network that stores data and responds to requests from client devices. The vulnerabilityA flaw in software or hardware that lets an attacker do something the maker did not intend, tracked as CVEThe public tracking code assigned to a specific known security flaw in software or hardware-2026-94545, affects versions 16.2.0 through 16.3.5 when the ImageResponse feature runs on the Node.js runtimeThe environment in which a program executes, or the period of time while the program is actively running. Attackers could exploit this by placing values they control, such as text from a request URLThe full web address used to locate a specific page, file, or resource on the internet, into the image generation process. This allows unauthorized users to execute commands on the server, which can compromise the entire system. The fix was released on September 22 in version 16.3.6, and the Edge version of ImageResponse is not affected. Apps using Next.js 16.2 must move to 16.3.6 because no fixed release exists for the 16.2 line.

Terms in this story

Server
A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
vulnerability
A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
CVE
The public tracking code assigned to a specific known security flaw in software or hardware. Every cataloged software flaw gets a unique CVE label so security teams, vendors, and news reports can talk about the exact same bug without confusion. Security+ objective 2.3 lists the term
runtime
The environment in which a program executes, or the period of time while the program is actively running. A flaw in a container or language runtime can let a program escape its isolation, and runtime security tools watch what a program actually does in memory while it runs.
URL
The full web address used to locate a specific page, file, or resource on the internet. Security filters inspect every URL in an incoming message to see whether the domain name is a newly registered lookalike or points to a known credential-harvesting server. Security+ objective 4.5 lists the term
Code Execution
A flaw that lets an attacker run any commands or program they choose on the target machine. When an advisory warns that a bug allows arbitrary code execution, an attacker who triggers the flaw can install malware, read files, or take over the program's account.
SVG
A vector image format written in text tags that can also contain interactive web scripts. Because browsers treat an SVG file like a small web document rather than a simple grid of pixels, phishers attach SVG files to emails to hide links and login forms from scanners.
advisory
An official bulletin from a vendor or agency warning users about a flaw and its fix. When a bug is patched, the vendor publishes a security advisory listing affected versions, the CVE code, the severity rating, and instructions for updating.
CVSS score
The standard rating scale used to score how severe a software security flaw is. Security advisories include a CVSS rating from low to critical based on how easy a bug is to exploit and how much damage it allows. Security+ objective 4.3 lists the term
Hacker
A person who explores and manipulates computer systems, either as a criminal intruder or a security researcher. In news headlines, the word hacker usually means an unauthorized intruder, though the security community also uses it for researchers who find and fix flaws.
exploit code
A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
patched
A software update released by a developer to fix a bug or close a security flaw. When a software flaw is discovered, the vendor ships a patch so administrators and ordinary users can update their systems before attackers exploit the bug. Security+ objective 4.3 lists the term

This page is a short description made for this site. The article itself, with its author's name and its own link, is on the The Hacker News website. Cite the article, not this page.

Read the full article on The Hacker News (opens in a new tab)

Course connections

Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.

How a story is connected to the course, and every objective, week and job role

Same story at other outlets

Related