# DRUPAL-CONTRIB-2023-020: This module enables you to define a 'weekly office hours' field type, and add a field to any Content type, in order to display the weekly opening hours for a location

- Database: Drupal
- Published: 2023-06-14
- Modified: 2026-09-10

## Affected versions

- drupal/office\_hours (Packagist): fixed in 1.11.0

## Description

This module enables you to define a 'weekly office hours' field type, and add a field to any Content type, in order to display the weekly opening hours for a location.

The module doesn't sufficiently filter user-supplied text leading to a Cross Site Scripting (XSS) vulnerability.

This vulnerability is mitigated by the fact that an attacker needs additional permissions. The vulnerability can be exploited by an attacker with a role with the permission "administer display" regardless of other configurations. In some scenarios, the vulnerability can be exploited by a user with "Create content" or "Edit content" for a relevant Content type.

## References

- https://www.drupal.org/sa-contrib-2023-020

Page: https://cve.now/DRUPAL-CONTRIB-2023-020

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