SA-CONTRIB-2026-195: Critical severity drupal/mathjax vulnerability

Published Oct 7, 2026
·
Updated

This module integrates the MathJax library into your Drupal site. MathJax is the modern JavaScript-based LaTeX rendering solution for the Internet. The module ships with library configurations that do not escape JavaScript within the TeX it formats. Notice: This release updates CDN URLs where possible and adds a system status warning for unsafe configurations. If you are unable to upgrade immediately, you can modify either the CDN URL or the custom MathJax JavaScript configuration according to the instructions in MathJax Safe-mode.

Credit

cilefen (cilefen)(the Drupal Security Team)

Affected Software

1 affected componentFixes available
drupal/mathjax<4.1.2
4.1.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade drupal/mathjax to a version that resolves this vulnerability.

    Fixed in 4.1.2
  2. Configuration

    Enable MathJax Safe-mode by modifying the CDN URL or the custom MathJax JavaScript configuration.

    MathJax Safe-mode = enabled

Event History

Oct 7, 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

Are sites using the module's bundled settings affected by default?

The module ships with library configurations that do not escape JavaScript within the TeX they format. The release adds a system status warning for unsafe configurations.

2

What condition is required for exploitation?

JavaScript must be present within TeX that is formatted using an unsafe MathJax configuration. The affected configurations do not escape that JavaScript.

3

What can be done if an immediate upgrade is not possible?

Modify either the MathJax CDN URL or the custom MathJax JavaScript configuration according to the MathJax Safe-mode instructions.

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