6.9medium
Symfony UX: Format-less date LiveProps parsed with the permissive DateTime constructor
- Severity
- 6.9medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-89g7-22c8-3j23
Description
Symfony UX is a JavaScript ecosystem for Symfony. From 2.8.0 until 2.36.0 and 3.1.0, when a #[LiveProp] is typed as DateTimeInterface and no explicit format is configured, Symfony\UX\LiveComponent\LiveComponentHydrator::hydrateObjectValue() falls back to new $className($value), allowing client-supplied relative strings such as now, tomorrow, or +10 years to move a writable, format-less date prop past time-based business logic checks. This issue is fixed in versions 2.36.0 and 3.1.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| symfony ux | >= 3.0.0, < 3.1.0, >= 2.8.0, < 2.36.0, from 2.8.0 before 2.36.0, 3.0.0 | CVE List, NVD |
| symfony/ux-live-component (Packagist) | from 2.8.0 before 2.36.0, from 3.0.0 before 3.1.0 | GitHub Advisory Database |
All scores
| GitHub_M | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
Symfony UX is a JavaScript ecosystem for Symfony. From 2.8.0 until 2.36.0 and 3.1.0, when a #[LiveProp] is typed as DateTimeInterface and no explicit format is configured, Symfony\UX\LiveComponent\LiveComponentHydrator::hydrateObjectValue() falls back to new $className($value), allowing client-supplied relative strings such as now, tomorrow, or +10 years to move a writable, format-less date prop past time-based business logic checks. This issue is fixed in versions 2.36.0 and 3.1.0.
GitHub Advisory Database
Description
When a #[LiveProp] is typed as a DateTimeInterface and no explicit format is configured, Symfony\UX\LiveComponent\LiveComponentHydrator::hydrateObjectValue() falls back to new $className($value). The DateTime / DateTimeImmutable constructors accept relative strings such as "now", "tomorrow", or "+10 years", so a writable, format-less date prop can be pushed to an arbitrary point in time by the client. Components that rely on a date prop to gate time-based business logic can be moved past those checks by a frontend payload that no maintainer would consider a valid date.
Resolution
hydrateObjectValue() now parses format-less date props strictly with createFromFormat(DateTimeInterface::RFC3339, ...), matching the format already emitted by dehydrateObjectValue(). Normal round-trips are unaffected; only inputs that aren't valid RFC 3339 are now rejected, which is consistent with how a format-configured prop already behaved.
The patch for this issue is available here for branch 2.x (and forward-ported to 3.x).
Credits
Symfony would like to thank Pascal Cescon for reporting the issue and Hugo Alliaume for providing the fix.
NVD (es)
Symfony UX es un ecosistema JavaScript para Symfony. Desde 2.8.0 hasta 2.36.0 y 3.1.0, cuando una #[LiveProp] se tipifica como DateTimeInterface y no se configura un formato explícito, Symfony\UX\LiveComponent\LiveComponentHydrator::hydrateObjectValue() recurre a new $className($value), permitiendo que cadenas relativas suministradas por el cliente, como now, tomorrow o +10 years, muevan una propiedad de fecha editable y sin formato más allá de las comprobaciones de lógica de negocio basadas en el tiempo. Este problema se corrige en las versiones 2.36.0 y 3.1.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-49208 changed 2026-07-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-89g7-22c8-3j23 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-49208 changed 2026-10-24 | Public domain |