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-2025-2321 Overview
CVE-2025-2321 is a business logic vulnerability in the 274056675 springboot-openai-chatgpt project, an open-source Spring Boot application that integrates ChatGPT-style conversational AI. The flaw resides in the /api/mjkj-chat/cgform-api/addData/ endpoint, where manipulation of the chatUserID argument leads to a business logic error [CWE-840]. Remote attackers with low privileges can exploit the issue over the network without user interaction. The project uses continuous delivery with rolling releases, so no specific affected or fixed versions are published. The vendor was contacted but did not respond to the disclosure, and the exploit details have been made public.
Critical Impact
Authenticated remote attackers can manipulate the chatUserID parameter to subvert business logic in the chat data endpoint, potentially altering records associated with other users.
Affected Products
- 274056675 springboot-openai-chatgpt (commit e84f6f5)
- Rolling release build dated 2024-12-29
- All deployments exposing the /api/mjkj-chat/cgform-api/addData/ endpoint
Discovery Timeline
- 2025-03-15 - CVE-2025-2321 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-2321
Vulnerability Analysis
The vulnerability affects the addData operation exposed by the cgform-api controller inside the mjkj-chat module. The endpoint accepts a chatUserID argument that is trusted by the backend without binding it to the authenticated session principal. An attacker who can authenticate at the lowest privilege level can submit requests that insert or associate chat form data under an arbitrary user identifier.
Because the project ships through rolling releases, no version-based remediation is tracked publicly. The flaw is classified as a business logic error, meaning the application behaves as implemented but violates intended authorization boundaries. Exploit information has been disclosed through VulDB submission records, raising the probability of opportunistic abuse against exposed instances.
Root Cause
The root cause is improper enforcement of user ownership on form-data insertion. The chatUserID field is accepted from client input instead of being derived server-side from the authenticated principal. This is a classic Business Logic Error [CWE-840] where authorization checks exist for the endpoint itself but not for the per-record user association.
Attack Vector
Exploitation requires network access to the application and valid low-privilege credentials. The attacker crafts an HTTP request to /api/mjkj-chat/cgform-api/addData/ and sets chatUserID to a victim's identifier. The server processes the request and attaches the submitted data to that user context, resulting in impersonation of ownership or data pollution within the chat history records.
See the VulDB entry 299750 and the CNBlogs security post for additional technical commentary. No verified proof-of-concept code is included here.
Detection Methods for CVE-2025-2321
Indicators of Compromise
- HTTP POST requests to /api/mjkj-chat/cgform-api/addData/ containing a chatUserID value that does not match the authenticated session user.
- Unexpected chat records appearing under user accounts that did not initiate the activity.
- Repeated requests from a single source iterating through sequential or enumerated chatUserID values.
Detection Strategies
- Inspect application and reverse-proxy logs for addData calls where the request body chatUserID differs from the session identity.
- Deploy web application firewall (WAF) rules that validate parity between authenticated user context and user-identifier parameters.
- Baseline normal request volume to the cgform-api endpoints and alert on sudden spikes or enumeration patterns.
Monitoring Recommendations
- Enable verbose audit logging on all mjkj-chat controller actions, capturing authenticated principal and payload parameters.
- Forward application logs to a centralized analytics platform to correlate authentication events with data-mutation requests.
- Review database writes to the chat form tables for records whose owner field was set by client input rather than server-side session data.
How to Mitigate CVE-2025-2321
Immediate Actions Required
- Restrict network exposure of the /api/mjkj-chat/cgform-api/addData/ endpoint to trusted internal networks until a fix is validated.
- Implement a server-side filter or interceptor that overrides any client-supplied chatUserID with the authenticated principal.
- Rotate credentials and audit chat data for records attributed to unexpected user identifiers.
Patch Information
The vendor did not respond to the disclosure, and no official patch or fixed release has been published. Because 274056675 springboot-openai-chatgpt uses continuous delivery with rolling releases, operators must apply code-level remediation locally. Review and modify the cgform-api controller handling addData to bind chatUserID to the session user rather than accepting it from request parameters.
Workarounds
- Place an authenticating reverse proxy in front of the application and strip or rewrite the chatUserID parameter based on the authenticated identity.
- Add an authorization check in a Spring HandlerInterceptor that rejects requests when the body chatUserID differs from the session user.
- Disable the addData endpoint entirely if the chat form feature is not required in production.
# Example Spring Security / reverse-proxy enforcement sketch
# Nginx snippet to block requests that embed a chatUserID parameter
location /api/mjkj-chat/cgform-api/addData/ {
if ($request_body ~* "chatUserID") {
return 403;
}
proxy_pass http://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

