ADVISORIES

Drupal Security Advisory

DRUPAL-CONTRIB-2025-122

Details

This module enables integration between Next.js and Drupal for headless CMS functionality.

When installed, the module automatically enables cross-origin resource sharing (CORS) with insecure default settings (Access-Control-Allow-Origin: *), overriding any services.yml CORS configuration. This allows any origin to make cross-origin requests to the site without administrator knowledge or consent.

This vulnerability affects all installations as there are no configuration options to disable this behavior.

Affected packages

EcosystemPackageAffected versions
Packagist:https://packages.drupal.org/8drupal/next
All versions before 1.6.4 (fixed in 1.6.4)
From 2.0.0 before 2.0.1 (fixed in 2.0.1)

References