# AI Engine <= 3.9.8 - Authenticated (Editor+) Path Traversal via 'videoId' Parameter

- **ID:** WPSEC-2026-4660
- **Plugin:** AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini (`ai-engine`), https://wordpress.org/plugins/ai-engine/
- **Affected versions:** from 3.1.2 before 3.9.9
- **Fixed in:** 3.9.9 (Update to 3.9.9 or later.)
- **Severity:** High 8.2 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:L)
- **Weakness:** CWE-22
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-05)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/ai-engine
- **Fix released:** 2026-12-04
- **Published:** 2026-12-05
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4660/

## Description

The AI Engine plugin for WordPress is vulnerable to Path Traversal via the 'videoId' and 'openaiId' parameters of the video helper REST endpoints in all versions up to, and including, 3.9.8. This is due to insufficient validation of the OpenAI video ID, which was only passed through sanitize_text_field before being appended to an OpenAI API URL sent with the site's API key. This makes it possible for authenticated attackers, with Editor-level access and above, to reach other OpenAI API endpoints with values such as '../files' and list, download and delete files stored in the site owner's OpenAI account.

## References

- https://wpsec.com/vuln/WPSEC-2026-4660/
- https://plugins.svn.wordpress.org/ai-engine/tags/3.9.9/
- https://wordpress.org/plugins/ai-engine/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4660/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
