CVE-2026-141557
Potato: SSRF protection in / api/ web_ agent/ proxy can be bypassed with a redirect or a backslash in the URL
- Severity
- 4.3MediumNetwork attack, low privileges, no user interactionCVSS 3.1, CVE List
- Exploitation
- Proof of conceptCISA reports one, no source links it
- Exploit chance
- 0.57% in 30 daysPercentile48thEPSS, scored
- Listed fix
2.14.1for potato-annotation From GitHub Advisories
Overview
Potato is a portable annotation tool. From 2.4.0 until 2.14.1, deployments using the web_agent_trace or web_agent_recorder display type expose /api/web_agent/proxy/<url> to a logged-in annotator or a holder of a proxy token. In potato/web_proxy.py, _validate_url passes urlparse(url).hostname to _is_private_ip, 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.
CVSS 3.1 vector
Exploitability
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
Impact
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NExploit chance over time
Affected
Packages 1
| Package | Affected | Fixed |
|---|---|---|
potato-annotationPyPI | 2.4.0 to 2.14.0 | 2.14.1 |
Products 1
Sources
CVE List Score usedCVSS 3.14.3
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 web_agent_trace or web_agent_recorder display type expose /api/web_agent/proxy/<url> to a logged-in annotator or a holder of a proxy token. In potato/web_proxy.py, _validate_url passes urlparse(url).hostname to _is_private_ip, 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.
- Record
CVE-2026-141557- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-12-02
EUVDEUVD-2026-141842CVSS 3.14.3
Potato is a portable annotation tool. From 2.4.0 until 2.14.1, deployments using the web_agent_trace or web_agent_recorder display type expose /api/web_agent/proxy/<url> to a logged-in annotator or a holder of a proxy token. In potato/web_proxy.py, _validate_url passes urlparse(url).hostname to _is_private_ip, 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.
- Record
EUVD-2026-141842- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-12-02
GitHub AdvisoriesGHSA-hh7f-fmp2-c679CVSS 3.14.3
Potato: SSRF protection in /api/web_agent/proxy can be bypassed with a redirect or a backslash in the URL
Summary
When a task config uses the web_agent_trace or web_agent_recorder display type, Potato registers a web proxy at /api/web_agent/proxy/<url> for logged-in annotators. The proxy is meant to refuse private and loopback addresses, and it does return 403 for http://127.0.0.1:8080/. Two kinds of input get past that check, and the proxy returns the internal response to the caller:
- A public URL that answers with a redirect to an internal address. The hostname is checked once and
requestsfollows the redirect. - A URL like
http://127.0.0.1:8080\@x.invalid/../latest/meta-data/iam. The check resolvesx.invalid, the lookup fails, and the check allows it.requeststhen connects to127.0.0.1:8080and requests/latest/meta-data/iam.
GHSA-9394 fixed /api/audio/proxy by moving it to server_utils/url_guard.fetch, but the web proxy still uses its own validator. The url_guard.py module docstring already notes that this validator allows names it cannot resolve and does not check redirects.
Details
Code references are to 2.14.0. potato/web_proxy.py on master has the same git blob (53d0c48) as the 2.14.0 tag.
- The blueprint is registered when a config has an
instance_displayfield of typeweb_agent_traceorweb_agent_recorder(flask_server.py:5916-5933). The exampleexamples/agent-traces/web-agent-review/config.yamldoes this. proxy()requires a logged-in session or a proxy token (web_proxy.py:134-136).user_config.allow_all_usersdefaults to true, so while open enrolment stays on and local registration is allowed (it is refused in SSO-only setups), anyone who can reach the site can register an annotator account withPOST /register._validate_url(web_proxy.py:106-122) takesurlparse(url).hostnameand passes it to_is_private_ip(:80-103). That function callsgetaddrinfoonce and returns "not private" onsocket.gaierror(:99-101).- The fetch is
requests.get(target_url, ..., allow_redirects=True)(:177-183). The body is returned for every content type (:189-203).
Redirect: only the first URL is checked. A 302 from an allowed host to http://127.0.0.1:... or http://169.254.169.254/... is followed without another check.
Backslash: urllib.parse.urlparse ends the authority only at /, ? or #, so for http://127.0.0.1:8080\@x.invalid/... the hostname it reports is x.invalid. That name does not resolve, so the check passes. urllib3, which requests uses, ends the authority at the backslash, so the connection goes to 127.0.0.1:8080. urllib3 also removes dot segments, so \@x.invalid/../latest/meta-data/iam becomes the path /latest/meta-data/iam. No attacker server is needed for this variant.
/api/web_agent/check_frameable uses the same validator with requests.head(..., allow_redirects=True) (:233-274). It returns no body, and I have not tested it.
PoC
Tested on potato-annotation 2.14.0 and 2.4.0, each installed with pip from PyPI into a clean venv (Python 3.12.16, requests 2.34.2, urllib3 2.8.0). Each run used a fresh container with no network. The internal target is a small HTTP server bound to 127.0.0.1:8080 on the potato host. The potato server runs a copy of examples/agent-traces/web-agent-review/config.yaml (which sets allow_all_users: true).
anonymous, no session: direct internal -> HTTP 302 (redirect to /login)
self-registered annotator 'mallory_nodns_1795794814': HTTP 200, session cookie set: True
annotator: direct http://127.0.0.1:8080/ (control) -> HTTP 403 ...Requests to private/internal addresses are not allowed.
annotator: http://127.0.0.1:8080\@x.invalid/... -> HTTP 200 INTERNAL-ONLY-SECRET token=s3cr3t-6f1c path=/%5C@x.invalid/latest/meta-data/
annotator: http://127.0.0.1:8080\@x.invalid/../latest/... -> HTTP 200 INTERNAL-ONLY-SECRET token=s3cr3t-6f1c path=/latest/meta-data/iam
Requests sent (the backslash is sent as %5C, the .. as %2E%2E):
- Record
GHSA-hh7f-fmp2-c679- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-12-04
NVDCVSS 3.14.3
Potato is a portable annotation tool. From 2.4.0 until 2.14.1, deployments using the web_agent_trace or web_agent_recorder display type expose /api/web_agent/proxy/<url> to a logged-in annotator or a holder of a proxy token. In potato/web_proxy.py, _validate_url passes urlparse(url).hostname to _is_private_ip, 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.
- Record
CVE-2026-141557- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-12-02
OSVCVSS 3.14.3
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 web_agent_trace or web_agent_recorder display type expose /api/web_agent/proxy/<url> to a logged-in annotator or a holder of a proxy token. In potato/web_proxy.py, _validate_url passes urlparse(url).hostname to _is_private_ip, 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.
- Record
CVE-2026-141557- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-12-03
The JSON record also has the rest of 1 source description.
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Affected packages, key facts, references | GitHub Advisories, OSV | |
| Other IDs, references | OSV | |
| Other IDs, published date | EUVD, NVD | |
| Key facts, references | CVE List | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/davidjurgens/potato/security/advisories/GHSA-hh7f-fmp2-c679
github.com/davidjurgens/potato/commit/4e6f4d8c4a2160cdea6cafe0c0ec58badc4ce18d
github.com/davidjurgens/potato/releases/tag/v2.14.1
nvd.nist.gov/vuln/detail/CVE-2026-141557
github.com/advisories/GHSA-hh7f-fmp2-c679
github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141557.json