CVE-2026-141557: Potato: SSRF protection in /api/web_agent/proxy can be bypassed with a redirect or a backslash in the URL
Potato is a portable annotation tool. From 2.4.0 until 2.14.1, deployments using the webagenttrace or webagentrecorder display type expose /api/webagent/proxy/<url> to a logged-in annotator or a holder of a proxy token. In potato/webproxy.py, validateurl passes urlparse(url).hostname to isprivateip, which uses getaddrinfo once and allows a socket.gaierror lookup failure. The proxy follows redirects without checking the destination, allowing a public URL to redirect to a private or loopback service. A URL containing a backslash in its authority can also be interpreted differently by the validator and the HTTP client, causing a connection to an internal address after the failed hostname lookup is allowed. An annotator can read the internal response, and open enrollment with local registration can make an annotator account available to anyone who can reach the deployment. This issue is fixed in version 2.14.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Potatoto a version that resolves this vulnerability.Fixed in 2.14.1
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments running versions from 2.4.0 through 2.14.1 that use the web_agent_trace or web_agent_recorder display type are exposed through the web-agent proxy endpoint.
What access does an attacker need?
An attacker needs either a logged-in annotator account or a proxy token. If open enrollment with local registration is enabled, anyone able to reach the deployment may be able to register an annotator account.
Can an attacker access internal services through this issue?
Yes. A public URL can redirect to a private or loopback service, or a URL with a backslash in its authority can cause the HTTP client to connect internally; the annotator can read the internal response.
What should be done to remediate the issue?
Upgrade to version 2.14.1, which fixes the issue. Until upgrading, restrict access to annotator accounts and proxy tokens, and avoid open enrollment with local registration where possible.