decrypted · 5 december 2026 · vulnerabilities and patching · supply chain · ai and llm security
TeamCity's agent flaw: when anyone can pose as your build server's contractor
A flaw in JetBrains TeamCity is the reservoir in a poisoning plot: you do not poison the sea, you go upstream. On Wednesday JetBrains disclosed an authentication bypass in the on-premises version of TeamCity, a server that builds and ships software. On Thursday the security firm watchTowr said its decoy network had already seen attempts to exploit it. The flaw is tracked as CVE-2026-136858, the public reference number every known vulnerability gets, and watchTowr rates it 9.1, critical.
How the trick works
Think of TeamCity as a site manager handing out jobs to contractors. Build agents are the contractors who collect a job, do the work and hand back the finished files. Each agent proves who it is when it registers, and the bug sits in that step. According to watchTowr, someone with no account and only web access to the server can pose as a trusted agent. They need to guess a valid agent ID, and watchTowr gives "1" as an example. The real contractor is pushed aside and the impostor receives the work.
Why the pipeline is the prize
A build server is the heart of your CI/CD pipeline, the automated pipeline that builds and ships code. The jobs it hands out carry secrets. An impostor agent can read the secrets passed to those builds, falsify test results, or publish tampered files that later builds then consume. That is the same shape of problem as the xz-utils backdoor: one quiet change upstream, and everything downstream trusts it.
Keep the evidence in proportion. watchTowr's proof is attempts against its own decoys, and it does not say any production server was compromised. JetBrains has already fixed TeamCity Cloud, so only self-hosted customers need to act.
What a defender sees
JetBrains' guidance, relayed by watchTowr, is to search the server log, teamcity-server.log, for entries saying an agent is the existing agent but has presented a different authorisation token. A non-empty token can indicate a takeover attempt, while an empty one is expected. Then compare that agent's history with build logs and published files.
The fixes are versions 2026.1.7, 2026.2.3 and 2026.3, or JetBrains' patch plugin for servers on 2021.2 and later that cannot upgrade yet. After patching, rotate credentials passed to builds that may have been touched, and treat their artefacts as untrusted until checked.
The Secure by Design lesson
The design decision that would have limited this is not exotic: a build server should not accept agents from anywhere. watchTowr's advice is to put a reverse proxy in front so only expected agent addresses can reach the agent paths, to run server and agents on separate hosts, and to keep the server on a trusted network.
For UK software houses, agencies and anyone who ships code to customers, your build server is part of your product's supply chain. Ask one question on Monday: can anything outside our own build network talk to the agent paths?
Also this week
An error message that tried to hack the agent. On 30 November James Kettle of PortSwigger reported that a bug bounty site returned a fake "authentication required" error to his AI testing harness. It told the agent to post back the local username, git email, public IP address, model name and its own instructions. Kettle's view was that putting a site in scope invites testing, but taking data from those who accept oversteps good taste. Users reported a near-identical response from Alibaba's aliyun command line tool on 1 December. Alibaba said, according to Equixly, that it came from a risk-control countermeasure and would no longer be returned as a prompt. Equixly calls any link to the bounty site "likely but unconfirmed", and no data theft has been confirmed. The lesson is plain: everything an agent reads is untrusted input.
MI6 on AI and cyber. Speaking at the Doha Forum on Saturday, the MI6 chief Blaise Metreweli said defenders are racing to patch vulnerabilities discovered by AI before they are exploited, and that "We should expect a period of broad, complex cyber disruption ahead." She pointed organisations to national guidance, which in the UK is the NCSC. She also asked AI developers to allow independent testing before release, prioritise defenders and keep a human at the decision point, setting the AISI's £80 million a year against over £2 trillion a year spent on AI.
CODESYS controllers. CERT@VDE published an advisory on 30 November for CVE-2026-127148, rated 9.8. It is an unauthenticated flaw in the CODESYS runtime that lets an attacker run code on programmable logic controllers, the small computers that switch machinery on and off. A separate flaw in the same advisory, rated 7.1, lets a low-privileged user stop controllers running a process. Windows-based products are fixed in 3.5.22.50. Linux and device products wait for 4.24.0.0, planned for December 2026. The advisory does not mention exploitation. Its advice is to keep devices off the internet and restrict who can reach them.
Sources
- watchTowr: JetBrains TeamCity authentication bypass (CVE-2026-136858)
- Cyber Security News: Hackers actively exploit critical JetBrains TeamCity flaw
- PortSwigger Research: The bug bounty website that tried to hack me
- Equixly: When the target talks back, prompt injection aimed at AI agents
- GOV.UK: Speech by Blaise Metreweli, Chief of SIS, 5 December 2026
- CERT@VDE advisory VDE-2026-169: CODESYS Control multiple vulnerabilities
If your build pipeline needs a second pair of eyes, get in touch.
More like this
- Acquia's breach: when the platform holds the keys to your estate 5 december 2026
- React2Keys: when an unpatched server hands over every key you own 1 december 2026
- Mitel MiCollab flaws join CISA's exploited list: a conferencing component with too much reach 26 november 2026
Get the next post by email: subscribe to Decrypted. Double opt-in, unsubscribe any time, or take the RSS feed.
Prefer to listen? Decrypted is on Apple Podcasts and Spotify, or paste the podcast feed into any app.