CVE-2026-49208: ux-live-component Format-less Date LiveProps Parsed With Vulnerability

MODERATE
Advisory Identifier: GHSA-89g7-22c8-3j23
CWE-20
Published
Advisory Summary

CVE-2026-49208 is a MODERATE format-less date liveprops parsed with vulnerability (CWE-20: Improper Input Validation) affecting ux-live-component libraries in the Packagist ecosystem. The issue involves format-less date liveprops parsed with the permissive datetime constructor. Remediation is available by upgrading affected packages to version 2.36.0, 3.1.0.

CVE-2026-49208 at a Glance

CVE Identifier CVE-2026-49208
GHSA Identifier GHSA-89g7-22c8-3j23
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product ux-live-component
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2026-49208

To remediate this vulnerability, upgrade all affected ux-live-component dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

symfony/ux-live-component fixed: 2.36.0
Upgrade symfony/ux-live-component to 2.36.0
symfony/ux-live-component fixed: 3.1.0
Upgrade symfony/ux-live-component to 3.1.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for symfony/ux-live-component

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-49208, inspect your project dependencies for ux-live-component:

inspect dependencies for symfony/ux-live-component

Analyze the terminal output to locate any version of ux-live-component in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.36.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In ux-live-component, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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](https://github.com/symfony/ux/commit/d24d78fda6df2d5964312255943ebf3a217b79a2) 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.

CVE-2026-49208 Affected ux-live-component Versions

2 component(s)
Fixed Versions:
2.36.03.1.0
Product / Package Ecosystem Affected Versions Fixed Version
symfony/ux-live-component
Packagist
≥ 2.8.0
< 2.36.0
2.36.0
symfony/ux-live-component
Packagist
≥ 3.0.0
< 3.1.0
3.1.0

References

Frequently Asked Questions

What is CVE-2026-49208?
CVE-2026-49208 is a security vulnerability in ux-live-component involving Format-less date LiveProps parsed with the permissive DateTime constructor under CWE-20: Improper Input Validation.
Which ux-live-component versions are affected?
Affected versions include releases prior to 2.36.0, 3.1.0 across affected packages: symfony/ux-live-component.
What version fixes CVE-2026-49208?
Upgrading to 2.36.0, 3.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/ux-live-component affected?
Yes, symfony/ux-live-component is affected in releases prior to 2.36.0, 3.1.0. Upgrade your dependency to 2.36.0, 3.1.0 or later.
What CWE is associated with CVE-2026-49208?
CVE-2026-49208 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Packagist dependencies for CVE-2026-49208?
Run the dependency tree command: 'inspect dependencies for symfony/ux-live-component'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-89g7-22c8-3j23",
  "modified" : "2026-06-19T19:23:55Z",
  "published" : "2026-06-19T19:23:55Z",
  "aliases" : [ "CVE-2026-49208" ],
  "summary" : "ux-live-component: Format-less date LiveProps parsed with the permissive DateTime constructor",
  "details" : "### 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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/ux-live-component"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.8.0"
      }, {
        "fixed" : "2.36.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/ux-live-component"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/symfony/ux/security/advisories/GHSA-89g7-22c8-3j23"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/ux/commit/d24d78fda6df2d5964312255943ebf3a217b79a2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/ux-live-component/CVE-2026-49208.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/symfony/ux"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-19T19:23:55Z",
    "nvd_published_at" : null
  }
}