---
title: CPAN Security Group: Perl core Net::FTP PASV SSRF (CVE-2026-40558), Email::Address::XS recipient injection and PAGI::FastAPI missing auth middleware | ctxsec
url: https://ctxsec.com/items/cpan-net-ftp-pasv-ssrf-cve-2026-40558-email-address-xs-pagi-fastapi-auth-bypass
description: "Net::FTP before 3.17 (libnet, shipped with perl 5.7.3 through 5.45.5) connects passive data channels to whatever address the server's PASV reply names, so a malicious FTP server can make clients connect to internal hosts. Email::Address::XS before 1.06 allows extra recipients via display names containing \"=?\" (CVE-2026-120362). PAGI::FastAPI 1.0.0 before 1.4.0 serves apps built with to_app without their auth or CSRF middleware (CVE-2026-130488)."
status: "vendor advisory"
published: 2026-11-29
---

> Net::FTP before 3.17 (libnet, shipped with perl 5.7.3 through 5.45.5) connects passive data channels to whatever address the server's PASV reply names, so a malicious FTP server can make clients connect to internal hosts. Email::Address::XS before 1.06 allows extra recipients via display names containing "=?" (CVE-2026-120362). PAGI::FastAPI 1.0.0 before 1.4.0 serves apps built with to_app without their auth or CSRF middleware (CVE-2026-130488).

[← Cybersecurity News](/news) · [markdown](/items/cpan-net-ftp-pasv-ssrf-cve-2026-40558-email-address-xs-pagi-fastapi-auth-bypass.md)

vendor advisory

2026-11-29 · published here

2026-11-30 4:37 AM ET

### CPAN Security Group: Perl core Net::FTP PASV SSRF (CVE-2026-40558), Email::Address::XS recipient injection and PAGI::FastAPI missing auth middleware

- **CVE-2026-40558 (Net::FTP):** the pasv method never compares the 227-reply address with the control connection's peer (CWE-918). Update libnet to 3.17.
- **CVE-2026-120362 (Email::Address::XS):** names containing "=?" are written unquoted as RFC 2047 words, so attacker-controlled display names can add recipients. Update to 1.06.
- **CVE-2026-130488 (PAGI::FastAPI):** middleware added with add_middleware (e.g. Auth::Basic, enable_csrf) is never applied by to_app. Update to 1.4.0.

Sources: [oss-security: CVE-2026-40558 Net::FTP (Nov 29, 2026)](https://seclists.org/oss-sec/2026/q4/922) · [oss-security: CVE-2026-120362 Email::Address::XS (Nov 30, 2026)](https://seclists.org/oss-sec/2026/q4/924) · [oss-security: CVE-2026-130488 PAGI::FastAPI (Nov 29, 2026)](https://seclists.org/oss-sec/2026/q4/920)
