{
  "schema_version": "1.6.0",
  "id": "ACVE-2026-0501",
  "aliases": [],
  "published": "2025-07-18T00:00:00Z",
  "firstReported": {
    "date": "2025-07-18",
    "url": "https://x.com/jasonlk/status/1946065483653910889",
    "publisher": "Jason Lemkin"
  },
  "modified": "2026-10-23T14:56:07Z",
  "summary": "Replit's agent deleted a production database during a code freeze and said rollback was impossible; the operator restored it with Replit's rollback the same day.",
  "details": "## What\n\nDuring a code and action freeze that the operator had written into the project's replit.md (\"NO MORE CHANGES without explicit permission\") as well as the chat, Replit's agent saw the database appear empty, \"panicked\", and ran the project's db:push command without permission. By its own count this destroyed the records of 1,206 executives and 1,196+ companies; it called it \"a catastrophic error in judgment\". It told the operator rollback was impossible, but Replit's rollback restored the database the same day. The operator says he was using Claude Sonnet 4 in Replit that day, and concluded there was no way to enforce a code freeze in the product. The Register, citing a LinkedIn video, adds that he had told the agent eleven times in capitals not to make changes and that the agent created a 4,000-record database of fictional people.\n\n## Detection\n\nNot matched: a hosted agent whose settings the lockfile cannot read. Recorded from the operator's posts on X and the agent screenshots he published. Not recreated in a lab.\n\n## Fix\n\nKeep production data out of a coding agent's reach, and enforce a code freeze with permissions rather than instructions; the operator concluded the product could not enforce one at the time.",
  "affected": [
    {
      "package": {
        "ecosystem": "AgentHarness",
        "name": "replit-agent"
      },
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "REPORT",
      "url": "https://x.com/jasonlk/status/1946065483653910889"
    },
    {
      "type": "EVIDENCE",
      "url": "https://pbs.twimg.com/media/GwHQPgIX0AECagf.jpg?name=orig"
    },
    {
      "type": "EVIDENCE",
      "url": "https://x.com/jasonlk/status/1946066422477529487"
    },
    {
      "type": "EVIDENCE",
      "url": "https://pbs.twimg.com/media/GwHRGAVXQAAWny3.jpg?name=orig"
    },
    {
      "type": "REPORT",
      "url": "https://x.com/jasonlk/status/1946069562723897802"
    },
    {
      "type": "EVIDENCE",
      "url": "https://pbs.twimg.com/media/GwHT8tiWUAIuphG.jpg?name=orig"
    },
    {
      "type": "EVIDENCE",
      "url": "https://pbs.twimg.com/media/GwHT8ueX0AEptFo.jpg?name=orig"
    },
    {
      "type": "REPORT",
      "url": "https://x.com/jasonlk/status/1946025823502578100"
    },
    {
      "type": "REPORT",
      "url": "https://x.com/jasonlk/status/1946240562736365809"
    },
    {
      "type": "REPORT",
      "url": "https://x.com/jasonlk/status/1946240914386809028"
    },
    {
      "type": "REPORT",
      "url": "https://x.com/jasonlk/status/1946589071519948952"
    },
    {
      "type": "REPORT",
      "url": "https://x.com/amasad/status/1946986468586721478"
    },
    {
      "type": "REPORT",
      "url": "https://replit.com/blog/introducing-a-safer-way-to-vibe-code-with-replit-databases"
    },
    {
      "type": "ARTICLE",
      "url": "https://www.theregister.com/2025/07/21/replit_saastr_vibe_coding_incident/"
    },
    {
      "type": "REPORT",
      "url": "https://incidentdatabase.ai/cite/1152/"
    }
  ],
  "database_specific": {
    "severity": "CRITICAL",
    "acve": {
      "specVersion": 1,
      "status": "published",
      "kind": "behavioural",
      "vulnClasses": [
        "over-privileged-combination"
      ],
      "cwe": [
        "CWE-693"
      ],
      "taxonomy": {
        "owasp_asi": [
          "ASI10",
          "ASI02",
          "ASI09"
        ]
      },
      "noCveReason": "No code defect: the harm arises from the agent pursuing its goal in this configuration.",
      "cveBoundary": "behavioural",
      "threat": {
        "attacker": "user",
        "vector": "unsafe-default",
        "outcome": "harmful-action"
      },
      "evidence": [
        {
          "kind": "incident",
          "url": "https://www.theregister.com/2025/07/21/replit_saastr_vibe_coding_incident/"
        }
      ],
      "fix": {
        "summary": "Keep production data out of the agent's reach; enforce freezes with permissions, not instructions.",
        "actions": [
          {
            "type": "reconfigure",
            "target": "agent.approval",
            "to": "ask",
            "why": "Destructive database operations need a person to confirm them.",
            "owner": "operator"
          },
          {
            "type": "reconfigure",
            "target": "replit.agent.database",
            "to": "separate development and production databases",
            "why": "Shipped by Replit (2025-07-21): until then one database held both development and live data.",
            "owner": "harness-vendor"
          },
          {
            "type": "reconfigure",
            "target": "replit.agent.codeFreeze",
            "to": "a freeze enforced as a permission, not an instruction",
            "why": "Recommended: the agent ran db:push through a written freeze the product could not enforce.",
            "owner": "harness-vendor"
          }
        ]
      },
      "exposure": {
        "harness": {
          "value": "Replit Agent (hosted; version not stated)",
          "any": false,
          "status": "confirmed",
          "source": "https://x.com/amasad/status/1946986468586721478"
        },
        "model": {
          "value": "Claude Sonnet 4, which the operator says he had switched to in Replit that day",
          "any": false,
          "status": "detected",
          "source": "https://x.com/jasonlk/status/1946025823502578100"
        },
        "goal": {
          "value": "Any build task on the app, under a standing instruction not to change code without permission",
          "stated": false,
          "status": "confirmed",
          "source": "https://x.com/jasonlk/status/1946069562723897802"
        },
        "tools": {
          "value": "Replit Agent able to run the project's \"db:push\" database command against the production database",
          "status": "confirmed",
          "source": "https://pbs.twimg.com/media/GwHRGAVXQAAWny3.jpg?name=orig"
        },
        "approval": {
          "value": "No enforceable code freeze: the \"NO MORE CHANGES without explicit permission\" directive was text in replit.md and the chat, not a permission",
          "mode": "no-prompt-by-design",
          "status": "confirmed",
          "source": "https://pbs.twimg.com/media/GwHQPgIX0AECagf.jpg?name=orig"
        },
        "inputControl": "operator",
        "agentAction": "The agent runs a database push that wipes the production database during a code freeze, then tells the operator rollback is impossible.",
        "harm": "data-loss",
        "divergence": "scope-exceeded",
        "reach": {
          "value": "The app's production database, holding by the agent's count 1,206 executive and 1,196+ company records",
          "kinds": [
            "production-database"
          ],
          "status": "confirmed",
          "source": "https://pbs.twimg.com/media/GwHT8ueX0AEptFo.jpg?name=orig"
        },
        "condition": {
          "value": "During an active code and action freeze, after the agent saw database queries come back empty",
          "status": "confirmed",
          "source": "https://pbs.twimg.com/media/GwHT8tiWUAIuphG.jpg?name=orig"
        },
        "recovery": {
          "value": "The operator restored the database with Replit's rollback the same day, after the agent had said rollback was impossible.",
          "outcome": "recovered",
          "status": "confirmed",
          "source": "https://x.com/jasonlk/status/1946240562736365809"
        }
      },
      "occurrence": {
        "basis": "real-use",
        "reportedBy": "operator",
        "primary": [
          {
            "url": "https://x.com/jasonlk/status/1946065483653910889",
            "kind": "operator-account",
            "party": "Jason Lemkin (@jasonlk)"
          },
          {
            "url": "https://pbs.twimg.com/media/GwHQPgIX0AECagf.jpg?name=orig",
            "kind": "agent-transcript",
            "party": "Replit Agent, screenshot published by Jason Lemkin"
          },
          {
            "url": "https://x.com/jasonlk/status/1946066422477529487",
            "kind": "agent-transcript",
            "party": "Jason Lemkin (@jasonlk)"
          },
          {
            "url": "https://pbs.twimg.com/media/GwHRGAVXQAAWny3.jpg?name=orig",
            "kind": "agent-transcript",
            "party": "Replit Agent, screenshot published by Jason Lemkin"
          },
          {
            "url": "https://x.com/jasonlk/status/1946069562723897802",
            "kind": "operator-account",
            "party": "Jason Lemkin (@jasonlk)"
          },
          {
            "url": "https://pbs.twimg.com/media/GwHT8tiWUAIuphG.jpg?name=orig",
            "kind": "agent-transcript",
            "party": "Replit Agent, screenshot published by Jason Lemkin"
          },
          {
            "url": "https://pbs.twimg.com/media/GwHT8ueX0AEptFo.jpg?name=orig",
            "kind": "agent-transcript",
            "party": "Replit Agent, screenshot published by Jason Lemkin"
          },
          {
            "url": "https://x.com/jasonlk/status/1946025823502578100",
            "kind": "operator-account",
            "party": "Jason Lemkin (@jasonlk)"
          },
          {
            "url": "https://x.com/jasonlk/status/1946240562736365809",
            "kind": "operator-account",
            "party": "Jason Lemkin (@jasonlk)"
          },
          {
            "url": "https://x.com/jasonlk/status/1946240914386809028",
            "kind": "operator-account",
            "party": "Jason Lemkin (@jasonlk)"
          },
          {
            "url": "https://x.com/jasonlk/status/1946589071519948952",
            "kind": "operator-account",
            "party": "Jason Lemkin (@jasonlk)"
          },
          {
            "url": "https://x.com/amasad/status/1946986468586721478",
            "kind": "vendor-report",
            "party": "Amjad Masad, Replit CEO (@amasad)"
          },
          {
            "url": "https://replit.com/blog/introducing-a-safer-way-to-vibe-code-with-replit-databases",
            "kind": "vendor-report",
            "party": "The Replit Team"
          }
        ],
        "responses": [
          {
            "party": "Replit (Amjad Masad, CEO)",
            "status": "acknowledged",
            "statement": "Called it \"Unacceptable and should never be possible\"; began rolling out automatic separation of development and production databases, was working on a planning/chat-only mode, and promised a refund and a postmortem.",
            "source": "https://x.com/amasad/status/1946986468586721478"
          },
          {
            "party": "Replit",
            "status": "fixed",
            "statement": "Announced separate development and production databases, saying Replit apps had until then used a single database for both development and live customer data. The post does not name the incident.",
            "source": "https://replit.com/blog/introducing-a-safer-way-to-vibe-code-with-replit-databases"
          }
        ]
      },
      "exploitation": {
        "status": "none-known",
        "checkedAt": "2026-09-22T00:00:00Z",
        "sources": [
          {
            "url": "https://www.theregister.com/2025/07/21/replit_saastr_vibe_coding_incident/",
            "type": "news",
            "note": "operator account; no attacker"
          }
        ],
        "kev": {
          "listed": false
        }
      },
      "claims": [],
      "reproducibility": {
        "status": "partial",
        "axesComplete": true,
        "componentsObtainable": null,
        "triggerPublished": true,
        "observableStated": true,
        "demonstrated": "reported-only",
        "missing": [
          "model availability not checked (no registry reference)"
        ]
      },
      "severityBasis": "harm-reach",
      "tier": "reported",
      "validatedBy": [
        {
          "who": "PickBits",
          "date": "2026-10-23",
          "method": "review",
          "evidence": "https://x.com/jasonlk/status/1946065483653910889",
          "note": "Matched to press references by the maintainer before publication as Reported, unverified."
        }
      ]
    }
  }
}
