A security flaw has been identified in the Drupal Next.Js module, which could allow attackers to inject malicious code into web pages. This type of vulnerability, known as Cross-Site Scripting (XSS), is a common threat that can compromise user data and website integrity if exploited.
The core of this issue lies in a “Permissive Cross-domain Security Policy with Untrusted Domains.” In simple terms, this means that the Drupal Next.Js module might be too trusting of information coming from various web addresses, including potentially unsafe ones. When a website allows content from untrusted domains without strict checks, an attacker can trick the system into running their malicious scripts. For users, this could mean unauthorized access to their session cookies, redirection to malicious sites, or defacement of the web page.
CVE Details
This vulnerability is officially identified as CVE-2025-13984.
- Product Name: Drupal Next.Js
- Published: January 28, 2026
- Severity: Medium (CVSS Score: 6.1)
- Status: Analyzed
Affected Products
The vulnerability specifically impacts the Drupal Next.Js module, affecting several versions:
- Next.Js versions from 0.0.0 before 1.6.4
- Next.Js versions from 2.0.0 before 2.0.1
If you are running any of these versions, your system may be at risk.
Current Status
The vulnerability has been “Analyzed,” meaning it has been reviewed and acknowledged by security experts. This status indicates that the details are understood, and solutions are likely in development or already available.
Severity Level
Rated with a CVSS score of 6.1, this vulnerability is categorized as Medium severity. While not critical, a Medium severity rating indicates that the issue could still lead to significant impact if exploited. Attackers could potentially gain access to sensitive information or manipulate content on your website, affecting user trust and data privacy. It’s important for administrators and developers to address such vulnerabilities promptly to maintain a secure environment.
Possible Solutions
To protect your Drupal website running the Next.Js module, it is crucial to implement the necessary security updates. While specific patch details could not be retrieved directly from the reference at the time of writing, typically, the primary solution for such vulnerabilities involves updating the affected module to a patched version. Always refer to the official Drupal security advisories for the most accurate and up-to-date guidance.
- Update Your Module: Check the official Drupal project page for the Next.Js module for any available updates beyond versions 1.6.4 and 2.0.1. Installing the latest stable version is almost always the best first step.
- Strict Security Policies: Ensure that your web server and application security policies are configured to prevent cross-domain scripting where possible.
- Content Security Policy (CSP): Implement a robust Content Security Policy (CSP) to mitigate XSS attacks by restricting sources of content that can be loaded and executed by the browser.
For more detailed remediation steps, please consult the official Drupal security advisory linked in the references section.
References
https://www.drupal.org/sa-contrib-2025-122


