{"id":"CVE-2026-49208","aliases":["CVE-2026-49208","GHSA-89g7-22c8-3j23"],"related":[],"kind":"vulnerability","state":"published","title":"Symfony UX: Format-less date LiveProps parsed with the permissive DateTime constructor","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Description\n\nWhen 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.\n\n### Resolution\n\n`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.\n\nThe patch for this issue is available [here](https://github.com/symfony/ux/commit/d24d78fda6df2d5964312255943ebf3a217b79a2) for branch 2.x (and forward-ported to 3.x).\n\n### Credits\n\nSymfony would like to thank Pascal Cescon for reporting the issue and Hugo Alliaume for providing the fix.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-06-19T19:23:55.000Z","modified":"2026-10-24T20:10:00.137Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":">= 3.0.0, < 3.1.0","status":"affected"},{"version":">= 2.8.0, < 2.36.0","status":"affected"}],"vendor":"symfony","product":"ux","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.8.0","status":"affected","fixed":"2.36.0"}],"ecosystem":"Packagist","package":"symfony/ux-live-component","purl":"pkg:composer/symfony/ux-live-component","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"3.1.0"}],"ecosystem":"Packagist","package":"symfony/ux-live-component","purl":"pkg:composer/symfony/ux-live-component","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.8.0","fixed":"2.36.0"},{"status":"affected","version":"3.0.0"}],"vendor":"symfony","product":"ux","cpe":"cpe:2.3:a:symfony:ux:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/symfony/ux/security/advisories/GHSA-89g7-22c8-3j23","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/symfony/ux/commit/d24d78fda6df2d5964312255943ebf3a217b79a2","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/symfony/ux/releases/tag/v2.36.0","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/symfony/ux/releases/tag/v3.1.0","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/ux-live-component/CVE-2026-49208.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/symfony/ux","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-21T01:41:38.338Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-49208","url":"https://www.cve.org/CVERecord?id=CVE-2026-49208","licence":"CVE Terms of Use","modified":"2026-07-21T01:41:46.730Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-89g7-22c8-3j23","url":"https://github.com/advisories/GHSA-89g7-22c8-3j23","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:48.829Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-49208","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49208","licence":"Public domain","modified":"2026-10-24T20:10:00.137Z"}],"updatedAt":"2026-11-25T22:59:28.496Z","epss":{"score":0.0024,"percentile":0.16228,"date":"2026-12-01T12:00:22.000Z"}}