Intel

AIKIDO-2026-265784

drupal/country is vulnerable to Cross-Site Scripting (XSS)

CVE-2026-107308Published Oct 8, 2026
October 8, 2026

40

CVE Score

Medium

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

The Country module provides a field type for Drupal core's official country list. The autocomplete widget does not sufficiently escape user input, which can lead to cross-site scripting. This vulnerability is mitigated by the fact that it cannot occur with the Country module alone; additional modules or custom code are required. Exploitation also requires administrator permissions and an uncommon configuration.

How do I fix this?

Upgrade the drupal/country library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and use the Country autocomplete widget with additional modules or custom code that puts untrusted strings into the country name list.

Versions

0.0.1 - 2.1.2

Fixed in 2.1.3

2.2.0 - 2.2.0

Fixed in 2.2.1

Background info

drupal/country is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 2.1.2 and 2.2.0 - 2.2.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea