Missing middleware in PAGI::FastAPI for Perl skips authentication and CSRF
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Security bypass, Tampering
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA. Impact type from CWE-306 and CWE-352.
Summary
PAGI::FastAPI for Perl versions from 1.0.0 before 1.4.0 do not apply middleware registered with add_middleware when applications are deployed through to_app, which is the entry point the documentation uses. Authentication middleware such as PAGI::Middleware::Auth::Basic and the CSRF middleware installed by enable_csrf therefore do not run, and nothing warns about this. A remote attacker can reach protected routes without credentials (CWE-306) and forge cross-site state-changing requests (CWE-352).
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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. add_middleware keeps middleware objects in a separate stack. These include PAGI::Middleware classes such as Auth::Basic, and the CSRF middleware that enable_csrf installs. to_app, the entry point the documentation deploys with, never applies that stack, and nothing warns that the middleware does not run. Middleware registered as a code reference is unaffected. A remote attacker can call protected routes without credentials and forge cross-site state-changing requests.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | PAGI-FastAPI | 1.0.0 to before 1.4.0 | 1.4.0 | Patch available | CNA |
- PAGI-FastAPI Vendor— Affected 1.0.0 to before 1.4.0 Fixed in 1.4.0 Patch available CNA
Remediation
Upgrade PAGI-FastAPI to version 1.4.0 or later, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA PAGI-FastAPI Fixed in 1.4.0
Timeline
- 2026-11-29 Threatist record created from CVE-2026-130488
- 2026-11-30 Alias added: GHSA-3v72-xrq6-8x62
References
Sources
- CVE-2026-130488 · CVE Program
- CVE-2026-130488 · NVD
- FIRST EPSS
- GHSA-3v72-xrq6-8x62 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences