# DRUPAL-CONTRIB-2026-339: This module provides a field type for storing structured data with multiple sub-fields, along with several widgets including a Search - autocomplete widget

- Database: Drupal
- Published: 2026-11-11
- Modified: 2026-11-11

## Affected versions

- drupal/datafield (Packagist): fixed in 2.0.15; from 3.0.0, fixed in 3.0.1

## Description

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.

## References

- https://www.drupal.org/sa-contrib-2026-339

Page: https://cve.now/DRUPAL-CONTRIB-2026-339

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
