PAGI-FastAPI for Perl Flaw Lets to_app Deployments Skip Auth and CSRF Middleware
According to an oss-security post, CVE-2026-130488 affects PAGI-FastAPI for Perl versions 1.0.0 up to 1.4.0, where middleware added with add_middleware is never applied under to_app. The advisory maps the issue to missing authentication and cross-site request forgery.
PythonWebVulnerabilitiesKey points
- CVE-2026-130488 affects PAGI-FastAPI for Perl, versions 1.0.0 before 1.4.0
- Middleware added via add_middleware is silently not applied when apps use to_app
- Reported impact includes access to protected routes without credentials and forged state-changing requests
- The vendor fix is upgrading to PAGI-FastAPI 1.4.0 or later; no severity score is given
According to a report on oss-security, CVE-2026-130488 is a CPAN Security Group advisory covering the PAGI-FastAPI distribution for Perl. Versions from 1.0.0 up to, but not including, 1.4.0 are affected. The problem involves the to_app entry point, which the project documentation recommends for deployment. The report says add_middleware stores middleware in a separate stack that to_app never applies, so those components do not run, and nothing warns the developer. Affected middleware includes PAGI::Middleware classes such as Auth::Basic and the CSRF middleware installed by enable_csrf. Middleware registered as a code reference is reported as unaffected. The report states that a remote attacker could reach protected routes without credentials and could forge cross-site requests that change state. The advisory classifies the flaw as CWE-306 (missing authentication) and CWE-352 (cross-site request forgery). The vendor-side fix is to upgrade to PAGI-FastAPI 1.4.0 or later. The report links to the 1.4.0 changelog on MetaCPAN and to the project's GitHub repository. It does not give a severity score, state whether exploitation has been observed, or mention a proof of concept. Readers should consult the original oss-security report for full details.
What to do
- Upgrade PAGI-FastAPI to version 1.4.0 or later, as the advisory recommends
- Check whether applications using to_app rely on Auth::Basic or CSRF middleware registered with add_middleware, and confirm those protections are actually active
- Review the 1.4.0 changelog on MetaCPAN and the project's GitHub repository for details
- Note that the report says middleware registered as a code reference is not affected
Original report
“CVE-2026-130488: PAGI::FastAPI versions from 1.0.0 before 1.4.0 for Perl serve requests without registered authentication or CSRF middleware in applications built with to_app”
Posted by Robert Rothenberg on Nov 29 ======================================================================== CVE-2026-130488 CPAN Security Group ======================================================================== CVE ID: CVE-2026-130488 Distribution: PAGI-FastAPI Versions: from 1.0.0 before 1.4.0 MetaCPAN: https://metacpan.org/dist/PAGI-FastAPI VCS Repo: ...
Vulnerabilities mentioned
- Pydantic Deep 0.2.18 Before 0.4.0 Missing Authentication in DeepResearch App
- Path Traversal Vulnerability in torchvision's extracttar() Function
- CVE-2026-65320 — AnswerDotAI fastcore
- Apache Texera CVE-2026-112788: Unauthenticated Python Environment Endpoints in Non-Kubernetes Setups
- Gunicorn Memory Exhaustion Vulnerability in ASGI HTTP/1 Parser