Potato annotation tool proxy leaks internal network access
Two bypasses let any registered annotator make the server fetch loopback and cloud metadata addresses, according to an advisory published on 4 December 2026.
By The Agentic Times ·

A GitHub security advisory published on 4 December 2026 describes two server-side request forgery flaws in Potato, an open-source annotation tool distributed on PyPI as potato-annotation. The advisory, tracked as GHSA-hh7f-fmp2-c679 and CVE-2026-141557, says the tool's web proxy endpoint can be tricked into fetching internal addresses and returning the responses to the caller. The advisory lists the issue as affecting deployments that enable Potato's web agent display types.
According to the advisory, Potato registers a proxy at /api/web_agent/proxy/<url> when a task config uses the web_agent_trace or web_agent_recorder display type. The proxy is supposed to refuse private and loopback addresses, and the reporter confirmed it returns HTTP 403 for a direct request to http://127.0.0.1:8080/. Two kinds of input get past that check.
The first is a redirect. The proxy validates the hostname once, then fetches the URL with redirects enabled. A public server that answers with a 302 pointing at a loopback address or at 169.254.169.254, the cloud instance metadata address, is followed without a second check. The second needs no attacker server at all. For a URL such as http://127.0.0.1:8080\@x.invalid/../latest/meta-data/iam, Python's urlparse reports the hostname as x.invalid. That name does not resolve, and the validator treats unresolvable names as safe. The underlying urllib3 library ends the authority at the backslash instead, so the connection goes to 127.0.0.1:8080, with the dot segments stripped to leave the path /latest/meta-data/iam.
Access to the proxy requires a logged-in session or a proxy token. The advisory notes that Potato's allow_all_users setting defaults to true, so on deployments with open enrolment and local registration anyone who can reach the site can register an annotator account by posting to /register. The reporter's proof of concept did exactly that, then retrieved a marker secret from a test HTTP server bound to loopback on the Potato host. Anonymous requests without a session were redirected to the login page.
The advisory says testing was done on potato-annotation 2.14.0 and 2.4.0, each installed from PyPI into a clean virtual environment on Python 3.12.16, in containers with no network access. For the redirect variant, the test harness made a single name resolve to a local server that issued the 302; Potato's code was not modified. Version 2.3.0 does not contain the relevant file, and releases between 2.4.0 and 2.14.0 were not run, although the reporter says the validator and the redirect-following behaviour are identical in the tags they read.
A related endpoint, /api/web_agent/check_frameable, uses the same validator and also follows redirects, the advisory says. It returns no body and the reporter did not test it.
The advisory points out that an earlier fix, GHSA-9394, moved Potato's audio proxy to a shared helper called server_utils/url_guard.fetch, but the web proxy kept its own validator. The module docstring for url_guard already warns that the older validator allows names it cannot resolve and does not check redirects. The suggested fix is to route the web proxy through url_guard.fetch, which fails closed on unresolvable names, connects to the address it validated, and checks every redirect hop.
On impact, the reporter is cautious. What is exposed depends on what the server can reach, such as local admin interfaces, internal HTTP APIs or, on a cloud host, the instance metadata service. The scoring assumes low confidentiality impact because only a test service was read; the advisory says a score of 6.5 would fit better if a reachable internal service returned credentials.
Sources
- github.comhttps://github.com/advisories/GHSA-hh7f-fmp2-c679
