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

CVE-2025-31475: tarteaucitron.js allows prototype pollution via custom text injection

April 7, 2025

A vulnerability was identified in tarteaucitron.js, where the addOrUpdate function, used for applying custom texts, did not properly validate input. This allowed an attacker with direct access to the site’s source code or a CMS plugin to manipulate JavaScript object prototypes, leading to potential security risks such as data corruption or unintended code execution.

References

  • github.com/AmauriC/tarteaucitron.js
  • github.com/AmauriC/tarteaucitron.js/commit/74c354c413ee3f82dff97a15a0a43942887c2b5b
  • github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-4hwx-xcc5-2hfc
  • github.com/advisories/GHSA-4hwx-xcc5-2hfc
  • nvd.nist.gov/vuln/detail/CVE-2025-31475

Code Behaviors & Features

Detect and mitigate CVE-2025-31475 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-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/tarteaucitronjs/CVE-2025-31475.yml

Spotted a mistake? Edit the file on GitLab.

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

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