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

CVE-2025-31138: tarteaucitron.js allows UI manipulation via unrestricted CSS injection

April 7, 2025

A vulnerability was identified in tarteaucitron.js, where user-controlled inputs for element dimensions (width and height) were not properly validated. This allowed an attacker with direct access to the site’s source code or a CMS plugin to set values like 100%;height:100%;position:fixed;, potentially covering the entire viewport and facilitating clickjacking attacks.

References

  • github.com/AmauriC/tarteaucitron.js
  • github.com/AmauriC/tarteaucitron.js/commit/25fcf828aaa55306ddc09cfbac9a6f8f126e2d07
  • github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-7524-3396-fqv3
  • github.com/advisories/GHSA-7524-3396-fqv3
  • nvd.nist.gov/vuln/detail/CVE-2025-31138

Code Behaviors & Features

Detect and mitigate CVE-2025-31138 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 5.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-1021: Improper Restriction of Rendered UI Layers or Frames

Source file

npm/tarteaucitronjs/CVE-2025-31138.yml

Spotted a mistake? Edit the file on GitLab.

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

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