Skip to main content
Mallory
MediumVulnerability

CVE-2025-6515: Prompt Hijacking in oatpp-mcp SSE Session IDs

Published Oct 20, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS6.8Medium · v3.1
EPSS0.40%35th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
IdentifiersCVE-2025-6515CWE-340

CVE-2025-6515 affects the oatpp-mcp implementation of the Model Context Protocol (MCP) for the Oat++ C++ web framework. In the SSE transport flow, oatpp-mcp generates the session ID from an instance pointer, making the identifier predictable, non-unique, and not cryptographically secure. Because MCP clients use this session ID in subsequent POST requests, an attacker who can predict or obtain a valid session ID can submit requests that the server associates with another client session. JFrog described this as a form of 'prompt hijacking': the attacker can pre-generate or guess session IDs, wait for them to be reassigned to legitimate clients, and then inject malicious MCP requests or prompts that the server processes as though they originated from the victim session. The vulnerable condition is rooted in insecure generation and reuse of session identifiers in the original SSE-based MCP implementation.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows session hijacking of legitimate MCP client connections. An attacker can cause the oatpp-mcp server to accept malicious requests under the victim's session context and return attacker-influenced or malicious responses to the legitimate client. In AI-agent or MCP-driven workflows, this can poison prompt/response exchanges, alter tool outputs, and potentially induce downstream actions based on falsified server responses. The issue compromises session integrity and trust in MCP communications, though the provided content does not establish direct server-side code execution.

Mitigation

If you can’t patch tonight, do this now.

If immediate remediation is not possible, restrict network access to the oatpp-mcp server to trusted clients and segments to reduce the ability of remote attackers to probe or pre-allocate session IDs. Add client-side validation using unpredictable event IDs and accept only responses that match the originating event ID. Monitor for abnormal connection churn, repeated session establishment/teardown, and suspicious POST activity that may indicate session ID harvesting or hijacking attempts. Where feasible, prefer MCP transports/specifications that require secure session handling over the legacy SSE approach.

Remediation

Patch, then assume compromise.

Update or modify oatpp-mcp so that session IDs are generated using a cryptographically secure random number generator and are unique, non-reusable, and carry at least 128 bits of entropy, as recommended by JFrog. Implement the newer MCP transport requirements that mandate secure session identifiers rather than relying on the older SSE behavior. Ensure freed session IDs are not recycled in a predictable manner and review all MCP server-side session management logic for identifier generation, lifetime, and reuse.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

Frequently asked questions

Is CVE-2025-6515 exploited in the wild?
As of Sep 25, 2026, Mallory has no reports of CVE-2025-6515 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2025-6515?
As of Sep 25, 2026, Mallory has found no public exploit for CVE-2025-6515.
Is there a patch for CVE-2025-6515?
Update or modify oatpp-mcp so that session IDs are generated using a cryptographically secure random number generator and are unique, non-reusable, and carry at least 128 bits of entropy, as recommended by JFrog. Implement the newer MCP transport requirements that mandate secure session identifiers rather than relying on the older SSE behavior.
How severe is CVE-2025-6515?
CVE-2025-6515 has a CVSS v3.1 score of 6.8 (Medium) and an EPSS score of 0.40% (35th percentile) as of Sep 25, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity4Community discussion across Reddit, Mastodon, and other social sources.