CVE-2019-10909: Symfony/symfony Cross-Site Scripting Vulnerability
MODERATECVE-2019-10909 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Symfony/symfony libraries in the Packagist ecosystem. The issue involves symfony cross-site scripting (xss) vulnerability. Remediation is available by upgrading affected packages to version 2.7.51, 2.8.50, 3.4.26, 4.1.12, 4.2.7, 8.5.15, 8.6.15.
CVE-2019-10909 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2019-10909
To remediate this vulnerability, upgrade all affected Symfony/symfony dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade symfony/symfony to 2.7.51
Upgrade symfony/symfony to 2.8.50
Upgrade symfony/symfony to 3.4.26
Upgrade symfony/symfony to 4.1.12
Upgrade symfony/symfony to 4.2.7
Upgrade symfony/framework-bundle to 2.7.51
Upgrade symfony/framework-bundle to 2.8.50
Upgrade symfony/framework-bundle to 3.4.26
Upgrade symfony/framework-bundle to 4.1.12
Upgrade symfony/framework-bundle to 4.2.7
Upgrade drupal/core to 8.5.15
Upgrade drupal/core to 8.6.15
Upgrade drupal/drupal to 8.5.15
Upgrade drupal/drupal to 8.6.15
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for symfony/symfony
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-10909, inspect your project dependencies for Symfony/symfony:
inspect dependencies for symfony/symfony
Analyze the terminal output to locate any version of Symfony/symfony in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.51), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Symfony/symfony, 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
CVE-2019-10909 Affected Symfony/symfony Versions
14 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
symfony/symfony
|
Packagist |
≥ 2.7.0
< 2.7.51
|
2.7.51
|
|
symfony/symfony
|
Packagist |
≥ 2.8.0
< 2.8.50
|
2.8.50
|
|
symfony/symfony
|
Packagist |
≥ 3.0.0
< 3.4.26
|
3.4.26
|
|
symfony/symfony
|
Packagist |
≥ 4.0.0
< 4.1.12
|
4.1.12
|
|
symfony/symfony
|
Packagist |
≥ 4.2.0
< 4.2.7
|
4.2.7
|
|
symfony/framework-bundle
|
Packagist |
≥ 2.7.0
< 2.7.51
|
2.7.51
|
|
symfony/framework-bundle
|
Packagist |
≥ 2.8.0
< 2.8.50
|
2.8.50
|
|
symfony/framework-bundle
|
Packagist |
≥ 3.0.0
< 3.4.26
|
3.4.26
|
|
symfony/framework-bundle
|
Packagist |
≥ 4.0.0
< 4.1.12
|
4.1.12
|
|
symfony/framework-bundle
|
Packagist |
≥ 4.2.0
< 4.2.7
|
4.2.7
|
|
drupal/core
|
Packagist |
≥ 8.0.0
< 8.5.15
|
8.5.15
|
|
drupal/core
|
Packagist |
≥ 8.6.0
< 8.6.15
|
8.6.15
|
|
drupal/drupal
|
Packagist |
≥ 8.0.0
< 8.5.15
|
8.5.15
|
|
drupal/drupal
|
Packagist |
≥ 8.6.0
< 8.6.15
|
8.6.15
|
References
Frequently Asked Questions
What is CVE-2019-10909?
Which Symfony/symfony versions are affected?
What version fixes CVE-2019-10909?
Is symfony/symfony affected?
Is symfony/framework-bundle affected?
What is the CVSS score of CVE-2019-10909?
What CWE is associated with CVE-2019-10909?
How can I check Packagist dependencies for CVE-2019-10909?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g996-q5r8-w7g2",
"modified" : "2024-02-14T15:22:38Z",
"published" : "2019-11-12T23:00:53Z",
"aliases" : [ "CVE-2019-10909" ],
"summary" : "Symfony Cross-site Scripting (XSS) vulnerability",
"details" : "In Symfony before 2.7.51, 2.8.x before 2.8.50, 3.x before 3.4.26, 4.x before 4.1.12, and 4.2.x before 4.2.7, validation messages are not escaped, which can lead to XSS when user input is included. This is related to symfony/framework-bundle.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.7.0"
}, {
"fixed" : "2.7.51"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.8.0"
}, {
"fixed" : "2.8.50"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.4.26"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.1.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0"
}, {
"fixed" : "4.2.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/framework-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.7.0"
}, {
"fixed" : "2.7.51"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/framework-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.8.0"
}, {
"fixed" : "2.8.50"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/framework-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.4.26"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/framework-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.1.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/framework-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0"
}, {
"fixed" : "4.2.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "drupal/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.5.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "drupal/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.6.0"
}, {
"fixed" : "8.6.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "drupal/drupal"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.5.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "drupal/drupal"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.6.0"
}, {
"fixed" : "8.6.15"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10909"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/commit/ab4d05358c3d0dd1a36fc8c306829f68e3dd84e2"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2019-10909.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2019-10909.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/framework-bundle/CVE-2019-10909.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2019-10909.yaml"
}, {
"type" : "WEB",
"url" : "https://symfony.com/blog/cve-2019-10909-escape-validation-messages-in-the-php-templating-engine"
}, {
"type" : "WEB",
"url" : "https://symfony.com/cve-2019-10909"
}, {
"type" : "WEB",
"url" : "https://www.drupal.org/sa-core-2019-005"
}, {
"type" : "WEB",
"url" : "https://www.synology.com/security/advisory/Synology_SA_19_19"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-11-12T16:48:32Z",
"nvd_published_at" : "2019-05-16T22:29:00Z"
}
}