Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2025-48939: tarteaucitron.js is a compliant and accessible cookie banner

22
Routine
MEDIUM 4.2UPGRADE

CVE-2025-48939 is a medium-severity flaw (CVSS 4.2) affecting tarteaucitronjs. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

tarteaucitron.js is a compliant and accessible cookie banner. Prior to version 1.22.0, a vulnerability was identified in tarteaucitron.js where document.currentScript was accessed without verifying that it referenced an actual <script> element. If an attacker injected an HTML element, it could clobber the document.currentScript property. This causes the script to resolve incorrectly to an element instead of the <script> tag, leading to unexpected

Why this priority

  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score4.2 (Medium)
Attack vectorLocal
Attack complexityLow
Privileges neededHigh
User interactionRequired
EPSS exploit chance0.2% (top 90%)
CISA exploited listNo
WeaknessCWE-138
Published2025-07-03
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: amauri

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

amauri tarteaucitronjs UPGRADE
Affected: < 1.22.0
Fixed in: 1.22.0
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls tarteaucitronjs
2. UPGRADE to 1.22.0
npm install tarteaucitronjs@">=1.22.0"
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2025-48939?

tarteaucitronjs: upgrade to 1.22.0. Exact commands for each OS are on this page.

Is CVE-2025-48939 being exploited?

CVE-2025-48939 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2025-48939 affect?

CVE-2025-48939 affects tarteaucitronjs. Severity is medium (CVSS 4.2). tarteaucitron.js is a compliant and accessible cookie banner. Prior to version 1.22.0, a vulnerability was identified in tarteaucitron.js where document.currentScript was accessed without verifying that it referenced an actual <script> elem

How urgent is CVE-2025-48939?

Priority 22/100. Public exploit reference

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.