{
  "id": "python/flask-csrf-token-missing",
  "signature": "BadRequest: 400 Bad Request: The CSRF token is missing.",
  "signature_zh": "错误请求：400 错误请求，缺少 CSRF 令牌。",
  "regex": "BadRequest:\\ 400\\ Bad\\ Request:\\ The\\ CSRF\\ token\\ is\\ missing\\.",
  "domain": "python",
  "category": "auth_error",
  "subcategory": null,
  "root_cause": "Flask-WTF 表单提交时未包含 CSRF 令牌。",
  "root_cause_type": "generic",
  "root_cause_zh": "Flask-WTF 表单提交时未包含 CSRF 令牌。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "降低安全性，易受攻击。",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "字段名不匹配，仍会失败。",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "<form method='post'>\\n    <input type='hidden' name='csrf_token' value='{{ csrf_token() }}'>\\n</form>",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "from flask_wtf.csrf import CSRFProtect\\ncsrf = CSRFProtect(app)",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}