Skip to content
XSS Advisory Intermediate CVE-2025-46618

JetBrains TeamCity Diagnostics Data Directory Cross-Site Scripting Vulnerability

The diagnostics functionality in JetBrains TeamCity does not properly validate filenames, allowing an attacker to inject arbitrary script. An attacker can exploit this to execute script in the context of a target user with minimal interaction.

Grigory Dorodnov Follow

Originally disclosed on Zero Day Initiative

Medium 5.4 View original

This vulnerability allows remote attackers to execute arbitrary script on affected installations of JetBrains TeamCity. Minimal user interaction is required to exploit this vulnerability.

Grigory Dorodnov of Trend Micro Security Research, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the diagnostics feature fails to sanitise or encode filenames before rendering them in a web page, leading to script injection.

Impact

An attacker could execute arbitrary script in the context of a target user, potentially taking actions as that user, though the text does not specify further consequences.

What the attacker needed

Minimal user interaction

The fix

JetBrains has issued an update to correct this vulnerability.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

TeamCity is a tool that helps software teams build and test code automatically. This bug lets an attacker slip harmful code into a file name that TeamCity shows in its diagnostics area, so when someone views that page, the attacker's code runs in their browser. That could let the attacker act as the victim inside TeamCity.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Grigory Dorodnov

View all

1 more disclosed report, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.