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

Published Nov 29, 2026
·
Updated

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 toapp.

addmiddleware keeps middleware objects in a separate stack. These include PAGI::Middleware classes such as Auth::Basic, and the CSRF middleware that enablecsrf installs. toapp, 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.

Affected Software

1 affected component
cpan/PAGI::FastAPI>=1.0.0<1.4.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PAGI-FastAPI to a version that resolves this vulnerability.

    Fixed in 1.4.0

Event History

Nov 29, 2026
CVE Published
via MITRE·09:42 PM
Data Sourced
via MITRE·09:42 PM
RemedyDescriptionWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Applications built with to_app are exposed if they rely on authentication or CSRF middleware added as middleware objects. This affects PAGI::Middleware classes such as Auth::Basic and the CSRF middleware installed by enable_csrf.

2

What does an attacker need to exploit this issue?

A remote attacker can directly call routes that were expected to require credentials because the registered authentication middleware does not run. They can also forge cross-site requests to state-changing routes when the intended CSRF middleware is bypassed.

3

How can I determine whether an application is affected?

Review applications using to_app and check whether add_middleware registered authentication or CSRF middleware objects. Middleware registered as a code reference is unaffected.

4

What version resolves the issue?

Upgrade to PAGI::FastAPI 1.4.0 or later. Versions from 1.0.0 before 1.4.0 are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203