CVE-2025-68166 Cross-site scripting in TeamCity

Medium 5.4 Published Updated

An attacker can execute arbitrary scripts in the context of other users via a DOM-based XSS vulnerability in the OAuth connections tab.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-68166?

CVE-2025-68166 is a medium-severity cross-site scripting vulnerability in Jetbrains Teamcity, published on 16 Dec 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

In JetBrains TeamCity before 2025.11 a DOM-based XSS was possible on the OAuth connections tab

Weakness: CWE-79

Which versions are affected by CVE-2025-68166?

It affects 1 product.

Products include Jetbrains Teamcity.

How do I fix CVE-2025-68166?

No fix has been published for CVE-2025-68166 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-68166 being exploited?

There is no known exploitation of CVE-2025-68166 in the wild and no public exploit code.

All Jetbrains Teamcity vulnerabilities

Sources

Also known as GHSA-7jmx-wp8v-fmfp.

Is CVE-2025-68166 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free