CVE-2025-13984: CWE-942 Permissive Cross-domain Security Policy with Untrusted Domains in Drupal Next.js
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 Analysis
Technical Summary
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.
Affected Countries
Germany, France, United Kingdom, Netherlands, Sweden, Italy, Spain, Poland
CVE-2025-13984: CWE-942 Permissive Cross-domain Security Policy with Untrusted Domains in Drupal 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
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.
Affected Countries
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2026-2071: Buffer Overflow in UTT 进取 520W
HighCVE-2026-25762: CWE-400: Uncontrolled Resource Consumption in adonisjs core
HighCVE-2026-25754: CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in adonisjs core
HighCVE-2026-25644: CWE-295: Improper Certificate Validation in datahub-project datahub
HighCVE-2026-25804: CWE-287: Improper Authentication in antrea-io antrea
HighActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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.