# CVE-2026-141557: Potato: SSRF protection in /api/web\_agent/proxy can be bypassed with a redirect or a backslash in the URL

- **Severity:** MEDIUM 4.3
- **CVSS:** 4.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **CWE:** CWE-918
- **Published:** 2026-12-02T20:27:22.688Z
- **Modified:** 2026-12-02T21:18:11.457Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker can use the Potato annotation tool's web agent proxy to bypass SSRF protections via redirects or backslash URLs and read internal services.

## Who should check

- Anyone running davidjurgens potato \>= 2.4.0, \< 2.14.1

## Description

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.

## Affected and fixed versions

- davidjurgens potato: \>= 2.4.0, \< 2.14.1 (cvelist)

## Mitigation

- Upgrade potato to 2.14.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-141557. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-141557.md
Affected: davidjurgens potato >= 2.4.0, < 2.14.1
Fixed in: davidjurgens potato 2.14.1

Steps:
1. Search this machine and project for davidjurgens potato: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-141557 being exploited?

There is no confirmed exploitation: CVE-2026-141557 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-141557?

Medium: CVSS 4.3 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-141557?

davidjurgens potato \>= 2.4.0, \< 2.14.1.

### Is there a fix for CVE-2026-141557?

Yes. Fixed in davidjurgens potato 2.14.1. Upgrade potato to 2.14.1 or later.

### How do I check if I'm affected by CVE-2026-141557?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/davidjurgens/potato/security/advisories/GHSA-hh7f-fmp2-c679>
- patch: <https://github.com/davidjurgens/potato/commit/4e6f4d8c4a2160cdea6cafe0c0ec58badc4ce18d>
- other: <https://github.com/davidjurgens/potato/releases/tag/v2.14.1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-141557>

HTML: <https://flawdb.com/CVE-2026-141557> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-141557>
