Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108665 Overview
CVE-2026-108665 is a missing authorization vulnerability in JeecgBoot through version 3.9.5. The flaw resides in the AiragPromptsController edit handler, which fails to verify that the requesting user owns the target prompt template. Any authenticated low-privileged user can send a PUT or POST request to /airag/prompts/edit with an arbitrary template id and overwrite the prompt text and model parameters created by administrators or other users. The weakness is classified as [CWE-862] Missing Authorization.
Critical Impact
Authenticated attackers can tamper with AI prompt templates belonging to other users, enabling prompt injection, altered model behavior, and manipulation of downstream Retrieval-Augmented Generation (RAG) workflows.
Affected Products
- JeecgBoot low-code platform through version 3.9.5
- JeecgBoot jeecg-boot-module-airag module (AI RAG prompts component)
- Any downstream application embedding the vulnerable AiragPromptsController
Discovery Timeline
- 2026-10-10 - CVE-2026-108665 published to NVD
- 2026-10-14 - Last updated in NVD database
Technical Details for CVE-2026-108665
Vulnerability Analysis
The vulnerability lives in the edit handler of AiragPromptsController within the JeecgBoot AI RAG module. The handler accepts a template identifier from the request body and persists updates to the targeted record. However, it does not check whether the authenticated caller is the owner of that template or holds an administrative role. As a result, authorization is enforced only at the authentication boundary, not at the object level, which satisfies the definition of Insecure Direct Object Reference combined with Missing Authorization.
An attacker only needs valid credentials for any account on the target instance. Once authenticated, they can enumerate template identifiers and replace legitimate prompt content with attacker-controlled instructions. This can poison AI responses, redirect model behavior, or exfiltrate data processed by downstream RAG pipelines consuming the modified templates.
Root Cause
The root cause is the absence of an ownership or role check inside the edit endpoint. The controller trusts the incoming id parameter and writes to the record without validating that the current principal has rights over that template. See the vulnerable code block at JeecgBoot AiragPromptsController source.
Attack Vector
Exploitation is remote and requires only low-privilege authenticated access. The attacker issues a PUT or POST request to /airag/prompts/edit containing a JSON body with the target template id and the fields to overwrite, such as promptText, modelName, or modelParams. No user interaction is required. A public proof of concept is available in the JeecgBoot PoC script, which demonstrates unauthorized edits against the recycle and edit flows.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-108665
Indicators of Compromise
- Unexpected PUT or POST requests to /airag/prompts/edit from accounts that do not own the referenced template
- Prompt template records whose updateBy field does not match the original createBy user
- Sudden changes to promptText, modelName, or model parameter fields in the airag_prompts table without a corresponding administrator audit entry
- Anomalous AI output or RAG responses containing attacker-controlled instructions
Detection Strategies
- Enable application-level audit logging for all write operations against the AI RAG prompts endpoints
- Correlate the authenticated principal in each request with the owner metadata of the affected template record
- Deploy web application firewall rules that flag /airag/prompts/edit requests referencing template IDs not previously accessed by the same session
- Review database triggers or change-data-capture streams for mass updates against the airag_prompts table
Monitoring Recommendations
- Alert on repeated edit calls from a single low-privilege account against multiple distinct template IDs
- Track baseline edit volume per user and raise alerts on deviations greater than two standard deviations
- Monitor outbound AI responses for unexpected URLs, credentials prompts, or data exfiltration patterns that may indicate a poisoned template
How to Mitigate CVE-2026-108665
Immediate Actions Required
- Restrict network access to the JeecgBoot /airag/prompts/* endpoints to trusted administrative users only, pending a vendor fix
- Rotate or disable low-privilege accounts that are not required to interact with the AI RAG module
- Audit the airag_prompts table for unauthorized modifications and restore clean values from backup where tampering is detected
- Review all AI prompt templates that drive production RAG workflows for integrity
Patch Information
At the time of publication, no fixed version has been listed in the NVD entry for CVE-2026-108665. Monitor the Vulncheck advisory and the upstream JeecgBoot repository for a patched release above 3.9.5. Once available, apply the patch and redeploy the jeecg-boot-module-airag component.
Workarounds
- Add a server-side authorization filter or Spring interceptor that verifies the authenticated user owns the referenced template id before invoking the edit handler
- Temporarily disable the /airag/prompts/edit route at the reverse proxy or API gateway if the AI RAG module is not in active use
- Enforce role-based access control that limits write operations on prompt templates to administrators only
# Example Nginx rule to restrict the vulnerable endpoint to an admin subnet
location = /airag/prompts/edit {
allow 10.0.0.0/24; # admin management network
deny all;
proxy_pass http://jeecgboot_backend;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

