tarteaucitron.js allows url scheme injection via unfiltered inputs
Moderate severity
GitHub Reviewed
Published
Apr 7, 2025
in
AmauriC/tarteaucitron.js
•
Updated Apr 7, 2025
Description
Published by the National Vulnerability Database
Apr 7, 2025
Published to the GitHub Advisory Database
Apr 7, 2025
Reviewed
Apr 7, 2025
Last updated
Apr 7, 2025
A vulnerability was identified in
tarteaucitron.js
, allowing a user with high privileges (access to the site's source code or a CMS plugin) to enter a URL containing an insecure scheme such asjavascript:alert()
. Before the fix, URL validation was insufficient, which could allow arbitrary JavaScript execution if a user clicked on a malicious link.Impact
An attacker with high privileges could insert a link exploiting an insecure URL scheme, leading to:
Fix AmauriC/tarteaucitron.js@2fa1e01
The issue was resolved by enforcing strict URL validation, ensuring that they start with
http://
orhttps://
before being used.References