Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-13984: CWE-942 Permissive Cross-domain Security Policy with Untrusted Domains in Drupal Next.js

0
Medium
VulnerabilityCVE-2025-13984cvecve-2025-13984cwe-942
Published: Wed Jan 28 2026 (01/28/2026, 20:02:22 UTC)
Source: CVE Database V5
Vendor/Project: Drupal
Product: Next.js

Description

CVE-2025-13984 is a medium severity vulnerability in Drupal's Next. js integration involving a permissive cross-domain security policy that allows untrusted domains. This misconfiguration enables Cross-Site Scripting (XSS) attacks by permitting malicious domains to execute scripts in the context of trusted sites. The vulnerability affects Next. js versions from 0. 0. 0 before 1. 6. 4 and from 2. 0.

AI-Powered Analysis

AILast updated: 02/05/2026, 08:51:10 UTC

Technical Analysis

CVE-2025-13984 is a vulnerability classified under CWE-942, indicating a permissive cross-domain security policy that includes untrusted domains within Drupal's Next.js integration. This vulnerability arises when the security policy governing cross-origin resource sharing or content security policies is configured too permissively, allowing domains that should not be trusted to interact with the web application. Specifically, this flaw enables Cross-Site Scripting (XSS) attacks, where an attacker can inject malicious scripts that execute in the context of the vulnerable site. The affected versions of Next.js are from initial releases (0.0.0) up to but not including 1.6.4, and from 2.0.0 up to but not including 2.0.1. The vulnerability does not require any privileges or authentication to exploit, but it does require user interaction, such as clicking a malicious link or visiting a crafted webpage. The CVSS 3.1 score of 6.1 reflects a medium severity, with network attack vector, low attack complexity, no privileges required, user interaction required, and impacts on confidentiality and integrity but not availability. The vulnerability's scope is changed, meaning the attack can affect resources beyond the vulnerable component. No patches are explicitly linked in the provided data, but upgrading to versions 1.6.4 or 2.0.1 and later is implied to remediate the issue. No known exploits have been reported in the wild, but the risk remains significant due to the nature of XSS attacks and their potential to steal session tokens, deface websites, or redirect users to malicious sites.

Potential Impact

For European organizations, this vulnerability poses a risk primarily to web applications built using Drupal integrated with affected versions of Next.js. Successful exploitation can lead to unauthorized script execution, potentially compromising user session tokens, personal data, or enabling phishing attacks through manipulated content. This can result in confidentiality breaches and integrity violations, undermining user trust and potentially violating GDPR requirements for data protection. While availability is not directly impacted, the reputational damage and regulatory consequences could be significant. Organizations in sectors with high web presence such as e-commerce, government portals, and financial services are particularly at risk. The vulnerability's exploitation does not require authentication, increasing the attack surface. Given the widespread use of Drupal and Next.js in Europe, especially in countries with strong digital economies, the impact could be broad if unpatched systems remain in production.

Mitigation Recommendations

European organizations should immediately identify any Drupal installations using affected Next.js versions (prior to 1.6.4 and 2.0.1). The primary mitigation is to upgrade Next.js to version 1.6.4 or later, or 2.0.1 or later, where the vulnerability is resolved. If immediate upgrading is not feasible, organizations should review and tighten cross-domain security policies, including Content Security Policy (CSP) headers, to restrict allowed domains explicitly and avoid wildcard or overly permissive settings. Implementing strict input validation and output encoding can reduce the risk of XSS exploitation. Additionally, employing web application firewalls (WAFs) with rules targeting XSS patterns can provide temporary protection. Regular security audits and penetration testing focusing on cross-domain policies and XSS vectors are recommended. User awareness training to recognize phishing and suspicious links can help mitigate user interaction risks. Monitoring for unusual script execution or anomalous web traffic may help detect exploitation attempts early.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
drupal
Date Reserved
2025-12-03T17:04:25.507Z
Cvss Version
null
State
PUBLISHED

Threat ID: 697a6c254623b1157cec170b

Added to database: 1/28/2026, 8:05:57 PM

Last enriched: 2/5/2026, 8:51:10 AM

Last updated: 2/7/2026, 1:24:11 AM

Views: 17

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats