Live Components Configured With a Custom Route Can Still Be Reached Through the Default Route
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Symfonysymfony/ux-live-component |
≥ 2.7.0, < 2.36.3→ 2.36.3 ≥ 3.0.0, < 3.8.1→ 3.8.1 |
2.36.3 3.8.1 |
Original description The description as published by the source.
#[AsLiveComponent(route: '...')] makes a live component send its requests to another route. The documentation suggests it so that the component lives under a specific firewall, for example. The default /_components/{_live_component}/{_live_action} route still served the component, though. A request to it rendered the component and ran its actions outside the firewall and the access rules of the configured route.
The request needs props signed by the application, which a page that rendered the component provides. Controller attributes on the component, like #[IsGranted], still applied.
A live component is now only served by the route it is configured with.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory symfony.com
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web packagist.org