# CVE-2026-51907: TaskingAI QR Code Generator path traversal in image storage

Source: https://junglewise.ai/threats/cve-2026-51907-in-taskingai-v0-3-0-in-the-qr-code-generator-plugin-save-base64  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-02. Updated: 2026-10-05  
License: CC BY 4.0 with a link back

CVE-2026-51907 · Severity: high · CVSS 8.1 · Published 2026-10-02

TaskingAI is an AI service platform that includes a QR code generator plugin for creating QR code images. A path traversal vulnerability in the QR code generator's save_base64_image function allows attackers to write image files to arbitrary locations on the server by manipulating the project_id parameter, potentially overwriting critical system files or deploying malicious content. This could lead to system compromise, data exposure, or denial of service.

Technologies: [TaskingAI](https://junglewise.ai/threats/technologies/taskingai). Vendors: [TaskingAI](https://junglewise.ai/threats/vendors/taskingai).

## Quick answers

**Is CVE-2026-51907 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-51907 being exploited in the wild.

**How severe is CVE-2026-51907?** High severity, with a CVSS score of 8.1, published 2 October 2026.

**Which products and versions are affected?** TaskingAI v0.3.0.

**Is there a fix for CVE-2026-51907?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-51907 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-51907?** Check whether you run TaskingAI at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability exists in plugin/app/service/image_storage.py's save_base64_image function, which constructs file paths by directly concatenating a user-controlled project_id parameter without path normalization or validation. An attacker can inject path traversal sequences (e.g., "../../../escape") via the X-Project-Id header in POST requests to /v1/execute to escape the intended storage boundary and write files to arbitrary filesystem locations. No containment checks, path resolution, or rejection of traversal sequences are performed.

## Affected products

- TaskingAI TaskingAI v0.3.0

## Timeline

- 2026-04-20: disclosed: Vulnerability reported as issue #374 on GitHub
- 2026-10-02: advisory: CVE-2026-51907 published

## References

- [https://gist.github.com/Ro1ME/357950ddd2f65566b1b33525651b5635](https://gist.github.com/Ro1ME/357950ddd2f65566b1b33525651b5635)
- [https://github.com/TaskingAI/TaskingAI/issues/374](https://github.com/TaskingAI/TaskingAI/issues/374)

## Related threats

- [TaskingAI server-side request forgery in OpenAPI action handling](https://junglewise.ai/threats/cve-2026-111321-taskingai-through-0-3-0-contains-a-server-side-request-forgery)
- [TaskingAI DALL-E 3 path traversal in save_url_image](https://junglewise.ai/threats/cve-2026-51906-in-taskingai-v0-3-0-in-the-dall-e-3-image-generation-tool-save)
