# CVE-2025-27157: Mastodon's rate-limits are missing on `/auth/setup`

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2025-02-27T17:12:39.043Z
- Modified: 2026-09-08T08:48:12.923Z
- Also known as: BIT-MASTODON-2025-27157, GHSA-v39f-c9jj-8w7h
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Mastodon is a self-hosted, federated microblogging platform. Starting in version 4.2.0 and prior to versions 4.2.16 and 4.3.4, the rate limits are missing on `/auth/setup`. Without those rate limits, an attacker can craft requests that will send an email to an arbitrary addresses. Versions 4.2.16 and 4.3.4 fix the issue.

(As written by CVE List.)

## Affected

- mastodon mastodon: >= 4.2.0, < 4.2.16; >= 4.3.0, < 4.3.4
- joinmastodon mastodon: from 4.2.0 before 4.2.16; from 4.3.0 before 4.3.4
- mastodon (Bitnami): from 4.2.0 before 4.3.4

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/mastodon/mastodon/security/advisories/GHSA-v39f-c9jj-8w7h> (advisory, vendor-advisory)
- <https://github.com/mastodon/mastodon/commit/06f879ce9bea195344ac9f71e6799eea500628ec> (fix, patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-27157> (web)

## Sources

- CVE List: [CVE-2025-27157](https://www.cve.org/CVERecord?id=CVE-2025-27157), CVE Terms of Use, modified 2025-02-27
- NVD: [CVE-2025-27157](https://nvd.nist.gov/vuln/detail/CVE-2025-27157), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MASTODON-2025-27157](https://osv.dev/vulnerability/BIT-MASTODON-2025-27157), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-27157 · Whole record: https://cve.day/CVE-2025-27157.json · Rebuilt by cve.day 2026-11-25T22:58:54.596Z
