A Malicious ChatGPT Share Link Can Execute Attacker Code and Harvest Private Conversations (Critical Vulnerability)
What It Is — Researchers at the security firm Parameter discovered that a specially crafted ChatGPT “share” link can inject and run attacker‑controlled JavaScript in the browser session of any logged‑in user who clicks the link. The injected code runs with the same privileges as the legitimate ChatGPT web app, allowing the attacker to read the victim’s private chat history, extract session tokens, and potentially act on behalf of the user within the OpenAI platform.
The flaw resides in the way the share‑link feature renders external content: the link includes a URL that the ChatGPT front‑end loads in an iframe without sufficient origin isolation or CSP (Content‑Security‑Policy) restrictions. By supplying a malicious payload in the URL fragment, an attacker can bypass the same‑origin checks, execute arbitrary script, and harvest the authenticated session’s data.
Parameter reported the issue to OpenAI through its bug‑bounty program on 18 October 2026. OpenAI classified the finding as P1 (the highest severity) and released a patch eight days later (26 October 2026). The fix tightens iframe sandboxing, enforces stricter CSP headers, and adds server‑side validation of share‑link parameters to block malformed payloads.
No public evidence suggests the vulnerability was exploited in the wild before remediation, and OpenAI has not disclosed any compromised accounts. The rapid response window, however, underscores the risk that any shared link—especially when distributed via email, messaging, or social media—could become a vector for session hijacking and data exfiltration.
Affected Products — OpenAI’s ChatGPT web interface (all browsers) with the “share” link feature enabled (versions prior to 2026‑10‑26 patch).
Why It Matters for Trust & Control Assurance — This flaw directly challenges the access‑control and session‑management control objective: ensuring that only authorized users can act within a system and that session boundaries cannot be subverted by malicious inputs.
Recommended Actions
- Validate Session Isolation – Review your web‑app’s CSP and iframe sandbox settings against the OpenAI patch notes; ensure similar controls exist for any internal tools that embed third‑party content.
- Audit Link‑Sharing Features – Inventory any internal or customer‑facing functionalities that generate shareable URLs; apply strict input sanitization and origin checks.
- Update to Patched Version – Instruct users to refresh their browsers and re‑authenticate after the OpenAI update; consider forcing a logout for all active sessions as a precaution.
- Monitor for Anomalous Activity – Enable logging of share‑link generation and access events; set alerts for unexpected read‑access to private chat logs.
- Educate Users – Communicate the risk of clicking unknown share links, even from trusted platforms, and reinforce a security‑aware culture.