CVE-2025-31475

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-31475
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-31475.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-31475
Aliases
Published
2025-04-07T15:15:44Z
Modified
2025-04-08T18:55:29.664903Z
Summary
[none]
Details

tarteaucitron.js is a compliant and accessible cookie banner. A vulnerability was identified in tarteaucitron.js prior to 1.20.1, 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. An attacker with high privileges could exploit this vulnerability to modify object prototypes, affecting core JavaScript behavior, cause application crashes or unexpected behavior, or potentially introduce further security vulnerabilities depending on the application's architecture. This vulnerability is fixed in 1.20.1.

References

Affected packages

Git / github.com/amauric/tarteaucitron.js

Affected ranges

Type
GIT
Repo
https://github.com/amauric/tarteaucitron.js
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

Other

20200910
20210305
20210306
20210329

V1.*

V1.2

v0.*

v0.1

v1.*

v1.0
v1.1
v1.10.0
v1.11.0
v1.12.0
v1.13.0
v1.13.1
v1.14.0
v1.15.0
v1.16.0
v1.16.1
v1.17.0
v1.18.0
v1.18.1
v1.19.0
v1.2
v1.2.0
v1.3
v1.4
v1.5
v1.6
v1.8
v1.8.1
v1.8.2
v1.8.3
v1.8.4
v1.9.1
v1.9.3
v1.9.4
v1.9.5
v1.9.6
v1.9.7
v1.9.8
v1.9.9