Intel

AIKIDO-2026-265784

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

Cross-Site Scripting (XSS)CVE-2026-107308 Published Oct 8, 2026

40

Medium Risk

This Affects:

PHPdrupal/country
0.0.1 - 2.1.2
Fixed in 2.1.3
2.2.0 - 2.2.0
Fixed in 2.2.1
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.

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.

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.

How to fix this

Upgrade the drupal/country library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform