CVE-2026-49208
JSON

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 packageVersionsReported 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.0CVE List, NVD
symfony/ux-live-component (Packagist)from 2.8.0 before 2.36.0, from 3.0.0 before 3.1.0GitHub Advisory Database

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Classification

CWE-20

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

SourceRecordLicence
CVE ListCVE-2026-49208 changed 2026-07-21CVE Terms of Use
GitHub Advisory DatabaseGHSA-89g7-22c8-3j23 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-49208 changed 2026-10-24Public domain