ADVISORIES

Drupal Security Advisory

DRUPAL-CONTRIB-2026-050

Details

The Plotly.js Graphing module provides a fully customizable implementation of the open source Plotly.js graphing library.

The module stores some data as PHP-serialized strings. In some situations, malicious data can be written directly to the field. This can lead to an object injection vulnerability when the data are unserialized.

This vulnerability is mitigated by the fact that an attacker must have permission to edit a content entity with an attached plotly_js_graph field. In addition, the core JSON:API module must be enabled with the option "Accept all JSON:API create, read, update, and delete operations", which is not the default, or the attacker needs some other way to edit field values directly.

Affected packages

EcosystemPackageAffected versions
Packagist:https://packages.drupal.org/8drupal/plotly_js
All versions before 3.0.2 (fixed in 3.0.2)

References