Keycard sits in the credential path of every tool call an agent makes. A flaw in these artifacts is a flaw in someone's authorization boundary, so we treat reports here as high priority and we would rather hear about a maybe than miss a real one.
Do not open a public issue, pull request, or discussion for a security problem.
Use either channel:
- GitHub private vulnerability reporting (preferred). Go to the Security tab of this repository and open a private advisory. This keeps the report and our triage in one place.
- Email security@keycard.ai. If you want to encrypt, say so in a first message with no details and we will send you a key.
You do not need a working exploit to report something. A clear description of the flawed logic is enough.
Before you write it up, the platform's security model, token lifetimes, encryption scheme and threat model are documented in the security architecture reference. It will tell you which behaviours are deliberate.
The more of this you have, the faster we can act:
- Which artifact and version (including ai.keycard:keycard-oauth, keycard-mcp, keycard-a2a, keycard-spring-boot-starter, keycard-spiffe, and keycard-bom)
- JDK version, and the Spring Boot version if you use the starter
- What an attacker gains: which token, whose data, which scope they should not have had
- The smallest reproduction you can manage, ideally a failing test
- Whether the issue needs a specific configuration or filter order, and which
Please test against a zone you control. Do not probe other tenants' zones or use credentials that are not yours.
| Stage | Our commitment |
|---|---|
| Acknowledgement | Within 3 business days |
| Initial assessment and severity | Within 10 business days |
| Fix or documented mitigation | Target 30 days for high and critical severity |
If we conclude something is not a vulnerability we will explain the reasoning, and you are welcome to argue with it.
Anything that lets a caller obtain, keep, or use authority it should not have. Concretely:
- Token validation. Accepting an expired, unsigned, or wrong-algorithm token. Failing to check aud, iss, or the resource indicator. JWKS handling that trusts the wrong key.
- Token exchange (RFC 8693). Scope escalation across an exchange, subject and actor confusion, a delegation chain that is dropped, forged, or not verifiable downstream. In keycard-a2a, an agent card that can steer a per-hop exchange somewhere it should not go.
- Servlet filter and Spring Boot starter bypass. Any request reaching a protected servlet or controller without the bearer filter having run, or with a token missing the required scope. A filter that fails open on an internal error rather than returning 401. A filter order or starter auto-configuration that a reasonable reader would expect to be safe but is not.
- Fail-open on a failed exchange. AccessContext records failures rather than throwing, so a handler that skips hasErrors() or status() carries on with a missing or failed grant. PARTIAL_ERROR is the dangerous one: some grants succeeded and some did not, and code that treats it as success is the bug. A SUCCESS status returned when a grant actually failed is in scope.
- Authorization server metadata. Anything in the metadata servlets, AuthorizationServerMetadataFilter, or the .well-known routes that enables an authorization server mix-up.
- Credential exposure. Client secrets, access tokens, or refresh tokens appearing in logs, stack traces, exception messages, or toString() output. Records print every component in their default toString(), so a record that carries a secret without overriding it is in scope.
- Thread safety with a security consequence. A token cache that can serve one request's credential to another under concurrent requests is a critical finding, not a flake.
- Insecure defaults. A configuration that most users will reach for and that is weaker than it appears, including the Spring Boot starter's defaults.
- PKCE, state, and nonce handling that permits replay, fixation, or cross-session confusion.
Issues in the hosted platform, the zone gateway, Keycard STS, Vault, or the Console, are not defects in this source tree. Email security@keycard.ai and say it concerns the hosted service. We will route it and keep you updated the same way.
- Findings that presuppose an already-compromised host, root access, or a client secret the attacker somehow holds
- Documented design choices, unless you can show one is exploitable. Token lifetimes, refresh token reuse, and the fifteen minute data encryption key cache are described in the security architecture reference and were chosen deliberately
- Vulnerabilities in dependencies with no exploitable path through these artifacts. Report those upstream, and tell us so we can bump
- Missing security headers or TLS configuration on documentation sites, with no demonstrated impact
- Rate limiting or resource exhaustion without a concrete, realistic attack
- Scanner output, including OWASP dependency-check results, with no analysis of exploitability
- Social engineering of Keycard staff, contributors, or customers
These artifacts are pre-1.0 and release together under one version. Treat a minor bump during 0.x.y as capable of containing breaking changes.
Security fixes land on the latest release. We do not backport to earlier 0.x minors. If you are pinned to an older version and cannot move, say so in your report and we will discuss options with you.
Java 17 and later are supported.
We do not currently run a paid bug bounty.
Safe harbour. If you make a good-faith effort to follow this policy, we will not pursue or support legal action against you. Good faith means you do not access, modify, or exfiltrate data belonging to anyone else, you do not degrade the service for other users, you stop at the point where you have demonstrated the problem, and you give us a reasonable chance to fix it before going public.
Keycard Labs, Inc. may be obliged under Article 14 of Regulation (EU) 2024/2847, the EU Cyber Resilience Act, to notify ENISA and a national CSIRT within 24 hours of becoming aware that a vulnerability in one of our products is being actively exploited.
Those notifications describe the vulnerability and the affected products. They do not include your identity or contact details unless you ask us to name you. If a report you send us triggers this obligation, we will tell you that it did.
- Security reports: security@keycard.ai
- Everything else: support@keycard.ai