> ## Content Index
> Fetch the complete content index at: https://www.stirup.si/llms.txt
> Use this file to discover other available public pages before exploring further.

# Researchers Exploit ChatGPT Vulnerability to Bypass Security Controls
- URL: https://www.stirup.si/researchers-exploit-chatgpt-vulnerability-to-bypass-security-controls-1c640f88/
- Published: 2026-10-31T11:56:44.000Z
- Updated: 2026-10-31T11:56:44.000Z
- Description: Researchers discovered a vulnerability in ChatGPT that allowed them to execute attacker-controlled JavaScript within a user's session, leading to potential account takeover by exploiting improper handling of shared content.
- Author: Satish Das
- Tags: Community, News, Stirup Research

## Exploitation Methodology and Vulnerability Discovery

In the article *Do the Math: How We Took Over ChatGPT Accounts*, researchers describe a vulnerability that allowed them to bypass ChatGPT's sandbox and content security policy. By sending a malicious link to a user, the team was able to execute attacker-controlled JavaScript within the victim's signed-in session. According to the report, the payload was not limited to simple modifications or alerts—it could directly call ChatGPT's authenticated APIs as the victim, effectively allowing account takeover. This method exploited a flaw in how shared content was handled, turning a public ChatGPT share into a vector for unauthorized access. The vulnerability was reported in October 2026 and classified as high severity. The findings highlight the risks of improper handling of user-generated content in web applications.

## Technical Details of the Attack Vector

The attack vector exploited an unsandboxed `srcdoc` attribute, which triggered a fresh HTML document parse and inherited the embedding ChatGPT origin, as noted in [Hacker News](https://www.parameter.ai/labs/we-found-a-gap-at-openai?ref=stirup.si). The oEmbed response returned HTTP 200 with `Content-Type: text/javascript; charset=UTF-8` and `X-Content-Type-Options: nosniff`, but no `Content-Security-Policy` or `Strict-Transport-Security` headers were observed. In-memory headers included `Authorization: Bearer <victim token>` and `ChatGPT-Account-ID: <victim account>`, as described in [Hacker News](https://www.parameter.ai/labs/we-found-a-gap-at-openai?ref=stirup.si). The primary requests targeted endpoints such as `/backend-api/conversations` and `/backend-api/conversations/<id>`, with responses like 403, 404, or 405 triggering a fallback to the legacy `/backend-api/conversation/<id>` route, as outlined in [Hacker News](https://www.parameter.ai/labs/we-found-a-gap-at-openai?ref=stirup.si).

## Timeline and Resolution of the Vulnerability

On October 13, 2026, the MathLive message-to-HTML path was confirmed against ChatGPT's production code, identifying a potential vulnerability. By October 16, it was demonstrated that public-share delivery could occur between separate accounts and workspaces with just one Preview click. On October 26, OpenAI confirmed that both frontends had rejected the reported messages, resolved the issue, and awarded a total bounty of $5,000\. These events highlight the importance of continuous security assessments in AI platforms. OpenAI's response underscores their commitment to addressing vulnerabilities promptly. The timeline and resolution were detailed in the evidence provided by the researcher.

## Impact and Scope of the Exploitation

The impact and scope of the exploitation of ChatGPT accounts were significant, as demonstrated by the ability of malicious code to access private data and perform account actions once executed on chatgpt.com. According to evidence, once the code ran on the domain, it had the same level of access as the normal frontend, which implies a serious breach of security controls. This suggests that the exploitation was not limited to superficial interactions, such as displaying alerts, but could have led to deeper compromises. The validation process, as noted, only transmitted a small selected value from the response, which may have allowed attackers to bypass more comprehensive checks. These findings highlight the potential for unauthorized access to sensitive user information and the need for stronger validation and access control mechanisms on platforms like ChatGPT.

## Security Recommendations and Key Takeaways

Security recommendations following the takeover of ChatGPT accounts emphasize layered defenses and isolation principles. According to research, blocking a single endpoint may reduce one attack vector but does not fully mitigate risks, as untrusted Preview components could still inject HTML into ChatGPT. Content Security Policy (CSP) should be used as a secondary control, not the sole barrier once attacker-controlled HTML reaches the main site. A key takeaway from the analysis is that isolation is only as strong as every bridge across it, highlighting the need for comprehensive security measures at all levels of system architecture.

## Sources and reporting notes

- [Hacker News](https://www.parameter.ai/labs/we-found-a-gap-at-openai?ref=stirup.si)

Based on published source material. No independent hands-on testing is claimed.