ShipSafe has 1 sourced item that involve GitBook: 0 build stories and 1 security incident. Each links to the original post and ends with a fix prompt you can paste into your own AI tool.
Where GitBook builders get stuck
Leaked secrets & API keys (1): Keys in front-end code or public repos get found and abused within hours. Keep secret keys server-side, set spend limits and turn on secret scanning.
How to use these GitBook stories
Read the summary and the original post, then copy the fix prompt into GitBook or whichever AI tool you build with. Each prompt asks the AI to check your own project for the same problem and explain its plan before changing anything. Most of these problems are not unique to GitBook, so the topic links above show the same mistake in other tools.
GitBook says an attacker got into its systems on 2 November through a flaw in its SSO login flow, creating sessions that acted as GitBook staff. From there they read the credentials of a misconfigured GitHub App, reached internal code, then a Cloudflare API key and production secrets with full infrastructure access. GitBook took the app offline for about 16 hours, rotated every secret and revoked all personal API tokens. It treats all customer data as exposed, including API tokens, integration tokens and secrets, session signing secrets and docs behind authenticated access. The attack used AI agents and appears aimed at one customer; GitBook found no evidence other customers' content was changed.