{
  "id": "ghsl-2026-166",
  "title": "GHSL AI-agent index lists mutable-ref TOCTOU in MongoDB Node driver release workflow",
  "product": "mongodb/node-mongodb-native release_notes GitHub Actions workflow",
  "ai_system": "GitHub Security Lab AI agent (system not named in advisory)",
  "organization": "GitHub Security Lab",
  "summary": "A maintainer-approved release workflow checks out the pull-request head by mutable ref and runs its scripts with a token granting contents and pull-request writes, so the contributor can update code after authorization.",
  "ai_role": "GHSL’s primary AI-agent index includes this advisory in its AI-discovered list. The item advisory credits only Jaroslav Lobačevski and does not explain agent involvement; attribution is index-level only.",
  "disclosure_date": "2026-09-16",
  "ai_attribution_date": "2026-09-16",
  "classification": "disclosure",
  "classification_note": "The primary advisory documents the race and fix; no exploitation in the wild is claimed.",
  "cves": [],
  "source_url": "https://securitylab.github.com/advisories/GHSL-2026-166_MongoDB_Node_js_Driver/",
  "ai_source_url": "https://securitylab.github.com/ai-agents/",
  "remediation": "fix documented",
  "remediation_note": "Fixed in PR #5043 on 2026-09-03. The workflow must be triggered by a maintainer.",
  "advisory_url": "https://securitylab.github.com/advisories/GHSL-2026-166_MongoDB_Node_js_Driver/",
  "checked_date": "2026-11-14",
  "impacts": [
    {
      "cves": [],
      "consequences": [
        "code execution",
        "data modification"
      ],
      "conditions": "An external pull request author can update the mutable head ref after maintainer authorization and cause attacker code to run in a workflow with contents:write and pull-requests:write token permissions.",
      "exploitation": "Exploitation in the wild is not established by the cited description.",
      "source_url": "https://securitylab.github.com/advisories/GHSL-2026-166_MongoDB_Node_js_Driver/",
      "checked_date": "2026-11-16"
    }
  ]
}
