CVE-2025-13984 Next.js - Critical - Access bypass - SA-CONTRIB-2025-122

Medium 6.1 Published Updated

A permissive cross-domain security policy in the Drupal Next.js module allows attackers to execute Cross-Site Scripting (XSS) attacks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-13984?

CVE-2025-13984 is a medium-severity cross-site scripting vulnerability in Drupal Next.js, published on 28 Jan 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Permissive Cross-domain Security Policy with Untrusted Domains vulnerability in Drupal Next.Js allows Cross-Site Scripting (XSS).This issue affects Next.Js: from 0.0.0 before 1.6.4, from 2.0.0 before 2.0.1.

Weakness: CWE-942

Which versions are affected by CVE-2025-13984?

It affects 1 product.

Linux distribution packages (1)
drupal/next Packagist:https://packages.drupal.org/8All versions1.6.4, 2.0.1

Products include Kanopi Next.js.

How do I fix CVE-2025-13984?

Upgrade to a fixed version.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-13984 being exploited?

There is no known exploitation of CVE-2025-13984 in the wild and no public exploit code.

Sources

Also known as DRUPAL-CONTRIB-2025-122, GHSA-2fw7-6f7r-fx94.

Is CVE-2025-13984 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free