December 5, 2026
Critical TeamCity flaw CVE-2026-136858 banner showing a hijacked build agent

Image: TeQBlogs

JetBrains has fixed a critical TeamCity vulnerability, CVE-2026-136858, that lets an attacker with no account take over a build agent on any TeamCity On-Premises server reachable over HTTP(S). Every on-premises version is affected. Update to TeamCity 2026.1.7, 2026.2.3 or 2026.3 now, or install the security patch plugin if you cannot restart the server. Security researchers reportedly saw exploitation attempts on 4 December, one day after disclosure, so treat this as urgent. TeamCity Cloud users do not need to do anything.

Quick summary

ItemDetails
CVECVE-2026-136858
ProductJetBrains TeamCity On-Premises (all versions)
SeverityCritical
ImpactUnauthenticated attacker can impersonate a build agent, steal build secrets and tamper with builds and artifacts
Fixed in2026.1.7, 2026.2.3, 2026.3
No-restart optionSecurity patch plugin for TeamCity 2021.2 and later
TeamCity CloudAlready fixed; no action needed
Disclosed2 December 2026 (JetBrains blog)
Two ways to fix CVE-2026-136858: update TeamCity or install the security patch plugin
Image: TeQBlogs
In this article
  1. What is the TeamCity vulnerability CVE-2026-136858?
  2. Is it being exploited?
  3. How to fix it: 2 options
  4. How to check whether your server was attacked
  5. Extra protection while you patch
  6. What it means for Indian software teams
  7. Frequently asked questions
  8. Bottom line

What is the TeamCity vulnerability CVE-2026-136858?

It is an authentication flaw in the way TeamCity trusts build agents. According to JetBrains, an attacker who can reach the TeamCity server over HTTP(S) can pretend to be an existing, authorised build agent, without any TeamCity user account.

Also read: Chrome P-256 Distrust: What Changes on 15 March 2027 and How to Check Your Site

Once the attacker controls an agent, JetBrains says they could:

  • Intercept builds assigned to that agent.
  • Read secrets passed to the build, such as API keys, cloud credentials and signing keys.
  • Falsify build results or publish tampered artifacts.

That last point is what makes this a supply-chain risk: downstream builds or deployments that use a tampered artifact could run the attacker’s code. A security researcher reported the flaw privately on 24 November 2026, and JetBrains published the fix on 2 December.

Is it being exploited?

JetBrains said it was not aware of active exploitation when it published the advisory. Security news site Help Net Security later reported that researchers at watchTowr saw attempted exploitation on 4 December, one day after disclosure. The attack needs a valid build agent ID, but agent IDs usually start at 1, so guessing one is easy.

This is also the second critical unauthenticated TeamCity flaw in about four months, which shows attackers are actively watching TeamCity servers.

How to fix it: 2 options

Option 1: Update TeamCity (recommended)

  1. Back up the TeamCity data directory and database.
  2. Download TeamCity 2026.1.7, 2026.2.3 or 2026.3 from JetBrains, or use the built-in automatic update.
  3. Install the update and restart the server.
  4. Confirm the version under Administration → Server Administration and check that agents reconnect.

Option 2: Install the security patch plugin (no restart)

If you cannot update right now, JetBrains has released a security patch plugin for TeamCity 2021.2 and later that fixes only this flaw:

  1. Go to Administration → Updates.
  2. On 2024.03 to 2026.2.1, review and apply the patch under Available security updates.
  3. On 2026.2.2 and later, set Security patches to Install automatically, or apply the downloaded patch manually.
  4. On older versions (2021.2 to 2023.x), download the plugin from JetBrains and install it manually.

The plugin fixes this one vulnerability only. Plan a full update afterwards.

Steps to check teamcity-server.log for build agent takeover attempts
Image: TeQBlogs

How to check whether your server was attacked

JetBrains gives one clear check. Search teamcity-server.log for this text:

of the existing agent, but different authorization token

  • An entry with an empty token (“”) is normal and can be ignored.
  • An entry with a non-empty token may be a takeover attempt.

If you find one:

  1. Note the timestamp and review that agent’s connection history, hostname and source IP.
  2. Compare build logs, results and published artifacts from around that time.
  3. Preserve logs, then update or patch the server.
  4. Rotate every credential passed to the affected builds.
  5. Treat artifacts from those builds as untrusted until verified, and trace where they were deployed.
Video: Pexels

Extra protection while you patch

JetBrains also recommends:

  • Allowing requests to /app/agents and its subpaths only from the IP addresses your build agents use (including cloud agents and NAT gateways), using a reverse proxy or other path-aware access control.
  • Keeping the TeamCity server off the public internet, with a VPN for remote agents and users.
  • Running the server and build agents on separate machines.
  • Enabling automatic security patches so future fixes install quickly.

What it means for Indian software teams

Many Indian IT services firms, SaaS start-ups and product companies run TeamCity on their own servers to build client software. A compromised build agent could leak client cloud keys or ship a tampered release to a customer, which turns one server flaw into a contractual and reputational problem. If your team builds software for clients, patch today and tell clients if you find signs of compromise. Businesses that need help reviewing CI/CD security can look at Suprams’ cybersecurity services.

For related reading, see our coverage of the Java4Shell vulnerability, the SAP GitHub breach and the FBI’s ARTEX warning.

Frequently asked questions

Which TeamCity versions are affected by CVE-2026-136858?

All TeamCity On-Premises versions are affected. The fix is in 2026.1.7, 2026.2.3 and 2026.3.

Do TeamCity Cloud users need to do anything?

No. JetBrains has already fixed TeamCity Cloud and found no evidence that any Cloud environment was exploited.

Can I fix it without restarting the server?

Yes. Install the JetBrains security patch plugin, available for TeamCity 2021.2 and later. It fixes only this vulnerability, so update fully later.

How do I know if my TeamCity server was attacked?

Search teamcity-server.log for “of the existing agent, but different authorization token”. A non-empty token may indicate a takeover attempt.

Bottom line

CVE-2026-136858 lets anyone who can reach your TeamCity server hijack a build agent and its secrets, and exploitation attempts have reportedly started. Update to 2026.1.7, 2026.2.3 or 2026.3 today, or apply the security patch plugin, check your server log, rotate secrets if anything looks wrong, and lock down access to /app/agents.

Sources

(Visited 5 times, 1 visits today)

About The Author

Leave a Reply

Your email address will not be published. Required fields are marked *