SA-CONTRIB-2026-339: Critical severity composer/drupal/datafield vulnerability

Published Nov 11, 2026
·
Updated

This module provides a field type for storing structured data with multiple sub-fields, along with several widgets including a Search - autocomplete widget. The module’s autocomplete endpoint does not sufficiently escape stored field values before returning them as suggestion labels, which can allow cross-site scripting. This vulnerability is mitigated by the fact that the attacker must have permission to edit an entity carrying a Data Field field. The Search - autocomplete widget must also be configured on that field.

Credit

Drew Webber (mcdruid)(the Drupal Security Team)

Affected Software

1 affected componentFixes available
composer/drupal/datafield<3.0.1, <2.0.15
3.0.12.0.15

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/drupal/datafield to a version that resolves this vulnerability.

    Fixed in 3.0.1Fixed in 2.0.15

Event History

Nov 11, 2026
Advisory Published
via Drupal·12:00 AM
Data Sourced
via Drupal·12:00 AM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Who is exposed to this issue?

Sites using composer/drupal/datafield are exposed only where a Data Field field is configured with the Search - autocomplete widget. Exploitation also requires an attacker to have permission to edit an entity that carries that field.

2

What must an attacker do to exploit it?

The attacker must be able to store a crafted value in a Data Field field on an editable entity. When that value is returned by the affected autocomplete endpoint as a suggestion label, insufficient escaping can allow cross-site scripting.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203