By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
Viral Trending contentViral Trending content
  • Home
  • World News
  • Politics
  • Sports
  • Celebrity
  • Business
  • Crypto
  • Gaming News
  • Tech News
  • Travel
Reading: Critical flaw in Next.js lets hackers bypass authorization
Notification Show More
Viral Trending contentViral Trending content
  • Home
  • Categories
    • World News
    • Politics
    • Sports
    • Celebrity
    • Business
    • Crypto
    • Tech News
    • Gaming News
    • Travel
  • Bookmarks
© 2024 All Rights reserved | Powered by Viraltrendingcontent
Viral Trending content > Blog > Tech News > Critical flaw in Next.js lets hackers bypass authorization
Tech News

Critical flaw in Next.js lets hackers bypass authorization

By admin 3 Min Read
Share
SHARE

A critical severity vulnerability has been discovered in the Next.js open-source web development framework, potentially allowing attackers to bypass authorization checks.

The flaw, tracked as CVE-2025-29927, enables attackers to send requests that reach destination paths without going through critical security checks.

Next.js is a popular React framework with more than 9 million weekly downloads on npm. It is used for building full-stack web apps and includes middleware components for authentication and authorization.

Front-end and full-stack developers use it to build web apps with React. Some of the more notable companies using it for their sites/apps are TikTok, Twitch, Hulu, Netflix, Uber, and Nike.

Authorization bypass

In Next.js, middleware components run before a request hits an application routing system and serve purposes like authentication, authorization, logging, error handling, redirecting users, applying geo-blocking or rate limits.

To prevent infinite loops where middleware re-triggers itself, Next.js uses a header called ‘x-middleware-subrequest’ that dictates if middleware functions should be applied or not.

The header is retrieved by the ‘runMiddleware’ function responsible for processing incoming requests. If it detects the ‘x-middleware-subrequest’ header, with a specific value, the entire middleware execution chain is bypassed and the request is forwarded to its destination.

An attacker can manually send a request that includes the header with a correct value and thus bypass protection mechanisms.

According to researchers Allam Rachid and Allam Yasser (inzo_), who discovered the vulnerability and published a technical write-up, “the header and its value act as a universal key allowing rules to be overridden.”

The vulnerability impacts all Next.js versions before 15.2.3, 14.2.25, 13.5.9. and 12.3.5. Users are recommended to upgrade to newer revisions as soon as possible, since technical details for exploiting the security issue are public.

Next.js’ security bulletin clarifies that CVE-2025-29927 impacts only self-hosted versions that use ‘next start’ with ‘output: standalone’. Next.js apps apps hosted on Vercel and Nerlify, or deployed as static exports, are not affected.

Also affected are environments where middleware is used for authorization or security checks and there is no validation later in the application.

If patching is not possible at the time, the recommendation is to block external user requests that include the ‘x-middleware-subrequest header’.

Red Report 2025

Based on an analysis of 14M malicious actions, discover the top 10 MITRE ATT&CK techniques behind 93% of attacks and how to defend against them.

You Might Also Like

They Will Kill You Review: Plenty of Blood, But Lacking Guts

Apple TV 2026 Delay Explained: A17 Pro & Siri 2.0 Leaks

Wearables company Whoop raises $575m in Series G round

In a Big Reversal, Zohran Mamdani Tells NYC Agencies They Can Use TikTok

Tech Advisor May 2026 digital magazine: Best of MWC 2026, first look at Google’s Pixel 10a and Samsung’s S26 line-up, and much more

TAGGED: Authentication Bypass, Next.js, ReactJS, Vulnerability
Share This Article
Facebook Twitter Copy Link
Previous Article Chase Daniel on Cam Ward’s ceiling, Shedeur Sanders’ floor and a wild card to watch
Next Article Using Starlink Wi-Fi in the White House Is a Slippery Slope for US Federal IT
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

- Advertisement -
Ad image

Latest News

They Will Kill You Review: Plenty of Blood, But Lacking Guts
Tech News
Apple TV 2026 Delay Explained: A17 Pro & Siri 2.0 Leaks
Tech News
Can Algeria’s gas save the old continent from the Strait of Hormuz?
Business
Top 10 Players in the 2026 College Basketball Crown Tournament
Sports
Japan to create special cell to push FDI into India
Business
Bitcoin’s $10K range expected to hold until spot traders show up: Data
Crypto
Indonesia arrests Scottish man sought by Spain in connection with international crime syndicate
World News

About Us

Welcome to Viraltrendingcontent, your go-to source for the latest updates on world news, politics, sports, celebrity, tech, travel, gaming, crypto news, and business news. We are dedicated to providing you with accurate, timely, and engaging content from around the globe.

Quick Links

  • Home
  • World News
  • Politics
  • Celebrity
  • Business
  • Home
  • World News
  • Politics
  • Sports
  • Celebrity
  • Business
  • Crypto
  • Gaming News
  • Tech News
  • Travel
  • Sports
  • Crypto
  • Tech News
  • Gaming News
  • Travel

Trending News

cageside seats

Unlocking the Ultimate WWE Experience: Cageside Seats News 2024

Investing £5 a day could help me build a second income of £329 a month!

Brussels unveils plans for a European Degree but struggles to explain why

cageside seats
Unlocking the Ultimate WWE Experience: Cageside Seats News 2024
May 22, 2024
Investing £5 a day could help me build a second income of £329 a month!
March 27, 2024
Brussels unveils plans for a European Degree but struggles to explain why
March 27, 2024
Trump evokes more anger and fear from Democrats than Biden does from Republicans, AP-NORC poll shows
March 28, 2024
© 2024 All Rights reserved | Powered by Vraltrendingcontent
  • About Us
  • Contact US
  • Disclaimer
  • Privacy Policy
  • Terms of Service
Welcome Back!

Sign in to your account

Lost your password?