Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. potato-annotation
  4. ›
  5. GHSA-q9m2-fhv9-3jcf

GHSA-q9m2-fhv9-3jcf: `potato-annotation` has a Project-Boundary Bypass

May 8, 2026

validate_path_security uses string-prefix containment (startswith) for boundary checks. This allows paths that are outside the intended project directory but share its prefix string (e.g., /tmp/potato_proj_demo_evil/... vs /tmp/potato_proj_demo) to be accepted.

References

  • github.com/advisories/GHSA-q9m2-fhv9-3jcf
  • github.com/davidjurgens/potato
  • github.com/davidjurgens/potato/security/advisories/GHSA-q9m2-fhv9-3jcf

Code Behaviors & Features

Detect and mitigate GHSA-q9m2-fhv9-3jcf with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.4.5

Fixed versions

  • 2.4.5

Solution

Upgrade to version 2.4.5 or above.

Impact 5.1 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/potato-annotation/GHSA-q9m2-fhv9-3jcf.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:20:19 +0000.