Intel

AIKIDO-2025-10214

tarteaucitronjs is vulnerable to Prototype Pollution

CVE-2025-31475Published Apr 7, 2025
April 7, 2025

73

CVE Score

High

Prototype Pollution

Are you affected? Scan for Free

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.

How do I fix this?

Upgrade the tarteaucitronjs library to the patch version.

Who does this affect?

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

Versions

1.8.1 - 1.19.0

Fixed in 1.20.1

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea