Intel

AIKIDO-2025-10214

tarteaucitronjs is vulnerable to Prototype Pollution

Prototype PollutionCVE-2025-31475

73

High Risk

This Affects:

JStarteaucitronjs
1.8.1 - 1.19.0
Fixed in 1.20.1

TL;DR

Affected versions of this package are vulnerable to prototype pollution due to unsafe property merging in a for...in loop without hasOwnProperty checks, allowing an attacker to inject malicious properties into Object.prototype by crafting an object with keys like __proto__ or constructor.prototype. It can lead to arbitrary code execution, privilege escalation, or denial of service by polluting the prototype chain.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

tarteaucitronjs is vulnerable to Prototype Pollution in versions 1.8.1 - 1.19.0.

How to fix this

Upgrade the tarteaucitronjs library to the patch version.

Background Info