CVE-2026-49136: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Anionex banana-slides
Banana Slides through 0.4.0, patched in commit e8bc490, contains a path traversal vulnerability in the generate_image() function within the AI service backend that allows unauthenticated attackers to read arbitrary image-format files outside the intended uploads directory by exploiting an incomplete path prefix check using os.path.startswith() without a trailing separator. Attackers can supply crafted markdown image references in user-controlled page descriptions that resolve to sibling directories whose names share the uploads folder prefix, bypassing the directory confinement check and causing the application to read files from unintended locations via PIL Image.open().
AI Analysis
Technical Summary
CVE-2026-49136 is a path traversal vulnerability in Anionex banana-slides through version 0.4.0. The generate_image() function in the AI service backend improperly limits pathname access due to an incomplete path prefix check using os.path.startswith() without a trailing separator. This allows unauthenticated attackers to craft markdown image references that resolve to sibling directories with names sharing the uploads folder prefix, thereby bypassing directory confinement and causing the application to read arbitrary image-format files outside the intended uploads directory via PIL Image.open(). The vulnerability is fixed in a commit identified as e8bc490.
Potential Impact
An unauthenticated attacker can read arbitrary image files outside the designated uploads directory, potentially exposing sensitive image data stored on the server. This can lead to unauthorized disclosure of information. The vulnerability does not require user interaction or privileges and has a high CVSS 4.0 score of 8.7, indicating a significant security risk.
Mitigation Recommendations
A fix is available and was introduced in commit e8bc490. Users should upgrade banana-slides to a version that includes this patch (versions later than 0.4.0). Since this is not a cloud service, remediation requires applying the patch or upgrading the software. Until patched, avoid exposing the vulnerable service to untrusted users or inputs that could exploit this path traversal.
CVE-2026-49136: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Anionex banana-slides
Description
Banana Slides through 0.4.0, patched in commit e8bc490, contains a path traversal vulnerability in the generate_image() function within the AI service backend that allows unauthenticated attackers to read arbitrary image-format files outside the intended uploads directory by exploiting an incomplete path prefix check using os.path.startswith() without a trailing separator. Attackers can supply crafted markdown image references in user-controlled page descriptions that resolve to sibling directories whose names share the uploads folder prefix, bypassing the directory confinement check and causing the application to read files from unintended locations via PIL Image.open().
CVSS v4.0
Score 8.7high
Affected software
pkg:github/anionex/banana-slidesRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-49136 is a path traversal vulnerability in Anionex banana-slides through version 0.4.0. The generate_image() function in the AI service backend improperly limits pathname access due to an incomplete path prefix check using os.path.startswith() without a trailing separator. This allows unauthenticated attackers to craft markdown image references that resolve to sibling directories with names sharing the uploads folder prefix, thereby bypassing directory confinement and causing the application to read arbitrary image-format files outside the intended uploads directory via PIL Image.open(). The vulnerability is fixed in a commit identified as e8bc490.
Potential Impact
An unauthenticated attacker can read arbitrary image files outside the designated uploads directory, potentially exposing sensitive image data stored on the server. This can lead to unauthorized disclosure of information. The vulnerability does not require user interaction or privileges and has a high CVSS 4.0 score of 8.7, indicating a significant security risk.
Mitigation Recommendations
A fix is available and was introduced in commit e8bc490. Users should upgrade banana-slides to a version that includes this patch (versions later than 0.4.0). Since this is not a cloud service, remediation requires applying the patch or upgrading the software. Until patched, avoid exposing the vulnerable service to untrusted users or inputs that could exploit this path traversal.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-05-27T17:40:12.738Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a1de934e29bf47b503e847f
Added to database: 06/01/2026, 20:19:00 UTC
Last enriched: 07/15/2026, 10:06:46 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 86
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.