Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. tarteaucitronjs
  4. ›
  5. CVE-2025-31476

CVE-2025-31476: tarteaucitron.js allows url scheme injection via unfiltered inputs

April 7, 2025

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.

References

  • github.com/AmauriC/tarteaucitron.js
  • github.com/AmauriC/tarteaucitron.js/commit/2fa1e01023bce2e4b813200600bb1619d56ceb02
  • github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-p5g4-v748-6fh8
  • github.com/advisories/GHSA-p5g4-v748-6fh8
  • nvd.nist.gov/vuln/detail/CVE-2025-31476

Code Behaviors & Features

Detect and mitigate CVE-2025-31476 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.20.1

Fixed versions

  • 1.20.1

Solution

Upgrade to version 1.20.1 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/tarteaucitronjs/CVE-2025-31476.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:40 +0000.