CVE-2026-115770 — Vulnerability in pocket-id/pocket-id/backend
Pocket ID: Email verification token remains valid after address change, enabling arbitrary verified-email spoofing
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.25%). Schedule for your next planned update.
Does your project use an affected github.com/pocket-id/pocket-id/backend version?
Paste your go.sum to check it for CVE-2026-115770 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
An authenticated Pocket ID user can request an email-verification token while their account uses an address they control, change the account email address, and then redeem the previously issued token. The token is bound only to the user ID, not to the address to which it was sent, and changing the address does not revoke outstanding tokens.
As a result, Pocket ID marks the newly supplied address as verified even though the user never proved control of it. Pocket ID subsequently returns that address with email_verified: true in OIDC claims. A relying party that trusts this claim for email-based account linking or provisioning can therefore link the attacker's Pocket ID identity to a victim's existing account, leading to cross-application account takeover.
This was verified against commit 9f559788a44cfea790de360da0a74d4bdf8ca5d5.
Preconditions
- The attacker has an ordinary Pocket ID user account.
- Email verification is in use (
emailsVerified=false, which is the default). - The user can edit their own account (
allowOwnAccountEdit=true, which is the default). - The target address is not already assigned to another Pocket ID user.
- For downstream account takeover, a relying party links or provisions users based on a trusted, verified email address. Applications that rely exclusively on the stable OIDC
subclaim are not affected by that downstream consequence.
No administrator privilege, victim interaction, or access to the victim's mailbox is required.
Reproduction through the API
- Sign in as an ordinary user whose current email address is controlled by the attacker, for example
attacker@example.test. - Call
POST /api/users/me/send-email-verification. - Obtain the token from the message delivered to
attacker@example.test, but do not redeem it yet. - Call
PUT /api/users/meand change the account email to an address the attacker does not control, for examplevictim@example.test. - Observe that the new address is initially stored with
emailVerified: false. - Call
POST /api/users/me/verify-emailwith the token delivered toattacker@example.test. - Call
GET /api/users/me. The current address is nowvictim@example.testandemailVerifiedistrue. - Complete an OIDC flow with the
emailscope. Pocket ID emits:
{
"email": "victim@example.test",
"email_verified": true
}
The old token has therefore verified a different address from the one to which it was delivered.
Executable regression test / proof of concept
Save this as backend/internal/service/audit_email_verification_test.go and run:
go test -tags=exclude_frontend,unit ./internal/service -run TestAuditEmailVerificationTokenSurvivesEmailChange -count=1 -v
The test passes on the referenced commit and demonstrates the unintended state transition:
package service
import (
"testing"
"time"
"github.com/stretchr/testify/require"
"github.com/pocket-id/pocket-id/backend/internal/appconfig"
"github.com/pocket-id/pocket-id/backend/internal/dto"
"github.com/pocket-id/pocket-id/backend/internal/model"
datatype "github.com/pocket-id/pocket-id/backend/internal/model/types"
)
func TestAuditEmailVerificationTokenSurvivesEmailChange(t *testing.T) {
userService, _ := newTestUserService(t)
config := &appconfig.AppConfigModel{
RequireUserEmail: "true",
AllowOwnAccountEdit: "true",
EmailsVerified: "false",
}
attackerEmail := "attacker-controlled@example.test"
user, err := userService.CreateUser(t.Context(), config, dto.UserCreateDto{
Username: "attacker",
Email: &attackerEmail,
EmailVerified: false,
})
require.NoError(t, err)
const tokenFromAttackerMailbox = "token-issued-for-attacker-email"
require.NoError(t, userService.db.Create(&model.EmailVerificationToken{
UserID: user.ID,
Token: tokenFromAttackerMailbox,
ExpiresAt: datatype.DateTime(time.Now().Add(time.Hour)),
}).Error)
victimEmail := "victim@example.test"
_, err = userService.UpdateUser(t.Context(), config, user.ID, dto.UserCreateDto{
Username: user.Username,
Email: &victimEmail,
}, true, false)
require.NoError(t, err)
changed, err := userService.GetUser(t.Context(), user.ID)
require.NoError(t, err)
require.Equal(t, victimEmail, *changed.Email)
require.False(t, changed.EmailVerified)
require.NoError(t, userService.VerifyEmail(
t.Context(),
user.ID,
tokenFromAttackerMailbox,
))
verified, err := userService.GetUser(t.Context(), user.ID)
require.NoError(t, err)
require.Equal(t, victimEmail, *verified.Email)
require.True(t, verified.EmailVerified)
}
Observed result:
=== RUN TestAuditEmailVerificationTokenSurvivesEmailChange
--- PASS: TestAuditEmailVerificationTokenSurvivesEmailChange
PASS
Root cause
backend/internal/model/email_verification_token.go stores only a token, expiration, and user ID. It does not store or cryptographically bind the address being verified.
UserService.SendEmailVerification creates the token for user.ID and sends it to the current user.Email, but that email is not part of the token record:
emailVerificationToken := &model.EmailVerificationToken{
UserID: user.ID,
Token: randomToken,
ExpiresAt: datatype.DateTime(expiration),
}
UserService.UpdateUser resets the verification flag when the address changes but leaves existing verification tokens valid.
UserService.VerifyEmail validates only the token, user ID, and expiry, then sets EmailVerified on the user's current record:
err := tx.WithContext(ctx).Where(
"token = ? AND user_id = ? AND expires_at > ?",
token,
userID,
datatype.DateTime(time.Now()),
).First(&emailVerificationToken).Error
user, err := s.getUserInternal(ctx, emailVerificationToken.UserID, tx)
// ...
user.EmailVerified = true
Finally, backend/internal/oidc/claims_service.go publishes the current address and flag together:
claims["email"] = *user.Email
claims["email_verified"] = user.EmailVerified
Impact
The direct impact is an authentication-integrity failure in an identity provider: any ordinary user can cause Pocket ID to attest control of an arbitrary unused email address.
The security boundary crossed by that false attestation is the relying application. Where a relying party treats email_verified=true as proof of address ownership and uses email for automatic account matching, the attacker can be signed into or linked to the victim's existing relying-party account. This can expose all data and actions available through that account.
Suggested remediation
- Store a normalized target email address (or a keyed hash of it) with every verification token.
- During redemption, atomically require that the stored target address still equals the user's current normalized email address.
- Invalidate all outstanding email-verification tokens whenever the account email changes.
- Invalidate prior outstanding tokens when issuing a replacement token.
- Add a regression test that changes the email after issuance and requires the old token to be rejected.
Testing note
Source review and test construction were AI-assisted. The finding, affected control flow, preconditions, and executable proof of concept were validated against the referenced Pocket ID commit before submission.
Advisory Timeline
- First published November 9, 2026 (17 days ago).
- Last revised November 9, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/pocket-id/pocket-id/backend@v0.0.0-20260727180059-43aaccd5bfac
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/pocket-id/pocket-id/backend Go · Affected: All versions | 0.0.0-20260727180059-43aaccd5bfac |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-345Insufficient Verification of Data AuthenticityMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.6 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
References
- https://github.com/pocket-id/pocket-id/security/advisories/GHSA-rm8c-2cv8-jwf6WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-115770ADVISORY
- https://github.com/pocket-id/pocket-id/pull/1625WEB
- https://github.com/pocket-id/pocket-id/commit/43aaccd5bfacb76283b11ce039fb3f0716196fcbWEB
- https://github.com/pocket-id/pocket-idPACKAGE
- https://github.com/pocket-id/pocket-id/releases/tag/v2.12.0WEB
Frequently Asked Questions
- What is CVE-2026-115770?
- Pocket ID: Email verification token remains valid after address change, enabling arbitrary verified-email spoofing. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.6/10).
- How do I check if my project is affected by CVE-2026-115770?
- CVE-2026-115770 affects github.com/pocket-id/pocket-id/backend. It has a 0.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-115770 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 9.5% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-104099CRITICAL
Fabio: Access-control bypass through unnormalized request paths
- CVE-2026-77369CRITICAL
Daptin: Broken Access Control (IDOR) in the generic YJS collaboration endpoint
- CVE-2026-28513HIGH
Pocket ID: OIDC authorization code validation uses AND instead of OR, allowing cross-client token exchange