Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2025-31476 — tacjs

🟡 CVSS 4.8 — Medium ✅ No Known Exploit NVD
4.8
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

tarteaucitron.js allows url scheme injection via unfiltered inputs

A vulnerability was identified in tarteaucitron.js, allowing a user with high privileges (access to the site's source code or a CMS plugin) to enter a URL containing an insecure scheme such as javascript:alert(). Before the fix, URL validation was insufficient, which could allow arbitrary JavaScript execution if a user clicked on a malicious link.

Impact

An attacker with high privileges could insert a link exploiting an insecure URL scheme, leading to:

  • Execution of arbitrary JavaScript code
  • Theft of sensitive data through phishing attacks
  • Modification of the user interface behavior

Fix https://github.com/AmauriC/tarteaucitron.js/commit/2fa1e01023bce2e4b813200600bb1619d56ceb02

The issue was resolved by enforcing strict URL validation, ensuring that they start with http:// or https:// before being used.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs administrative privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity low, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: High — administrative rights are needed first.
  • User interaction: Required — someone has to click, open or visit something.
  • Scope: Changed — a successful attack reaches components beyond the vulnerable one.
  • Confidentiality impact: Low — limited, and the attacker does not choose what is affected.
  • Integrity impact: Low — limited, and the attacker does not choose what is affected.
  • Availability impact: None.

Affected software

CVE-2025-31476 is recorded against 3 packages.

  • drupal/tacjs (fixed in 6.7.0)
  • tacjs (from 8.x-1.0 up to 8.x-6.7)
  • tarteaucitronjs

Timeline and source

Published on 2 April 2025 and last revised on 10 December 2025. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

www.drupal.org (Web)

Other advisories for this package

drupal/tacjs has other advisories on record. If you are patching this one, these are worth checking on the same host:

Details

Severity Medium
CVSS Score 4.8
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2025-04-02
Updated 2026-08-20
Modified 2025-12-10

Affected Packages

Software From version Fixed in
drupal/tacjs 6.7.0
tacjs 8.x-1.0 8.x-6.7
tarteaucitronjs

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in tacjs

CVE-2025-31476 is rated CVSS 4.8 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2025