Intel

AIKIDO-2026-472816

yarl is vulnerable to Server-Side Request Forgery (SSRF)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 22, 2026
July 22, 2026

59

CVE Score

Medium

Server-Side Request Forgery (SSRF)

Are you affected? Scan for Free

TL;DR

The yarl URL parser and builder APIs accept host inputs that normalize or decode into a different effective host than the raw input or a stricter parser sees. Unicode characters that fold to % under NFKC normalization, IPv6 zone identifiers containing ASCII control characters, and Unicode default-ignorable or format code points can survive host validation and land in url.host, while the Cython and pure-Python quoting backends handle lone surrogates inconsistently. An attacker who supplies a crafted URL can make an application that validates or routes on the parsed host resolve to an unintended host, enabling host confusion and server-side request forgery when the application compares parsed fields against serialized strings. The fix adds % to the _check_netloc NFKC check, validates IPv6 zone identifiers, rejects hosts that expand to URL delimiters or contain default-ignorable code points, and aligns the two quoting backends on lone surrogates.

How do I fix this?

Upgrade the yarl library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

0.0.1 - 1.24.2

Fixed in 1.24.5

Background info

yarl is vulnerable to Server-Side Request Forgery (SSRF) in versions 0.0.1 - 1.24.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea