SourceHut disabled-registration bypass assigned CVE-2026-121728
A researcher disclosed a logic bug in SourceHut that lets users register on instances where registration is disabled. Back in 2021, while registration code was being moved from the Flask/Jinja frontend to the GraphQL backend written in Go, the check that registration is closed was lost on the happy path of the form handler. The frontend never shows a registration form and states that registration is closed, but the handler still processes valid submissions.
Exploitation requires only a POST to /register/step2 with a username, email and password, plus email confirmation via SMTP. CSRF protection is not an obstacle because the token fetched from /login is accepted. The researcher reports it worked on at least 10 affected instances and lists affected versions 0.56.11 through 0.88.9, with unknown user accounts on /users as the indicator of compromise.
Disclosure to SourceHut's security mailing list happened on 2026-11-02; the fix landed, downstream maintainers were notified, and VulnCheck assigned CVE-2026-121728 on 2026-11-03. The author's lessons: refactors can swallow security checks, auth flows need extra correctness checks, and CSRF tokens should be scope-limited to the endpoint each form points to.
Read the original blog.arusekk.plDiscussion
Discussion
No comments included in the source.
Sources
-
blog.arusekk.pl
SourceHut disabled registration bypass | CVE-2026-121728
Terms
- CSRF token — A hidden value embedded in a web form so the server can verify the request was submitted from the site's own form, blocking cross-site request forgery.
- happy path — The code branch that runs when everything goes as expected and no errors occur.
- indicator of compromise — A sign, such as suspicious accounts or log entries, that a system may have been exploited.

