# DRUPAL-CONTRIB-2022-026: This module provides an entity relationship hierarchy tree widget for an entity reference field

- Database: Drupal
- Published: 2022-02-23
- Modified: 2026-09-10

## Affected versions

- drupal/entity\_reference\_tree (Packagist): fixed in 2.0.2

## Description

This module provides an entity relationship hierarchy tree widget for an entity reference field.

The module doesn't sufficiently filter on output, leading to a Cross Site Scripting vulnerability.

This vulnerability is mitigated by the fact that an attacker must have a role with the permission to modify an entity that is the reference to a field.

## References

- https://www.drupal.org/sa-contrib-2022-026

Page: https://cve.now/DRUPAL-CONTRIB-2022-026

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