CVE-2024-11718: tarteaucitron-wp WordPress Plugin Vulnerable to Stored Cross-Site Scripting

Summary

15/05/2025
Yes i
Moderate
4.8

CVE-2024-11718: tarteaucitron-wp WordPress Plugin Vulnerable to Stored Cross-Site Scripting. Affects couleurcitron/tarteaucitron-wp versions < 0.3.0. Fixed in 0.3.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The tarteaucitron-wp WordPress plugin is designed to help website owners comply with GDPR regulations by managing user consent for cookies. It allows users to customize cookie consent banners and manage user preferences. However, prior to version 0.3.0, the plugin had a vulnerability that allowed users with author-level permissions and above to insert HTML into posts or pages, leading to potential security risks.

Vulnerability Detail

The vulnerability in the tarteaucitron-wp plugin arises from improper input validation, allowing users with author-level permissions to inject HTML content into posts or pages. This could lead to Stored Cross-Site Scripting (XSS) attacks, where malicious scripts are stored on the server and executed in the context of other users' browsers. The impact of this vulnerability can range from data theft to session hijacking, making it a significant security concern for websites using this plugin.

How To Fix

Minimum fixed version

0.3.0

This is the first release that contains the fix.

composer require couleurcitron/tarteaucitron-wp:0.3.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate updating is not possible, consider restricting user permissions to prevent contributors and authors from adding HTML content to posts or pages. This can be done by adjusting user roles in the WordPress admin settings.

Conclusion

The tarteaucitron-wp WordPress plugin has a vulnerability that allows stored XSS attacks due to improper input validation. It is crucial for users to update to version 0.3.0 or later to mitigate this risk. Additionally, users can implement temporary workarounds to restrict permissions until the update can be applied.

See every vulnerability recorded for couleurcitron/tarteaucitron-wp →

Share this vulnerability

FAQ

Stored XSS is a type of security vulnerability where an attacker can inject malicious scripts into content that is stored on the server. When other users access this content, the scripts are executed in their browsers, potentially compromising their data.

Users with author-level permissions and above in the WordPress site using the tarteaucitron-wp plugin are affected, as they can inject HTML into posts or pages.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

As a temporary measure, restrict user permissions to prevent contributors and authors from adding HTML content until you can update the plugin.

The CVSS score of this vulnerability is 4.8, indicating a moderate severity level.

How To Fix

Minimum fixed version

0.3.0

This is the first release that contains the fix.

composer require couleurcitron/tarteaucitron-wp:0.3.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback