CVE-2023-46735: Symfony/webhook Cross-Site Scripting Vulnerability
MODERATECVE-2023-46735 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Symfony/webhook libraries in the Packagist ecosystem. The issue involves symfony potential cross-site scripting in webhookcontroller. Remediation is available by upgrading affected packages to version 6.3.8.
CVE-2023-46735 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2023-46735
To remediate this vulnerability, upgrade all affected Symfony/webhook 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/webhook to 6.3.8
Upgrade symfony/symfony to 6.3.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for symfony/webhook
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-46735, inspect your project dependencies for Symfony/webhook:
inspect dependencies for symfony/webhook
Analyze the terminal output to locate any version of Symfony/webhook in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.3.8), 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/webhook, 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-2023-46735 Affected Symfony/webhook Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
symfony/webhook
|
Packagist |
≥ 6.3.0
< 6.3.8
|
6.3.8
|
|
symfony/symfony
|
Packagist |
≥ 6.3.0
< 6.3.8
|
6.3.8
|
References
Frequently Asked Questions
What is CVE-2023-46735?
Which Symfony/webhook versions are affected?
What version fixes CVE-2023-46735?
Is symfony/webhook affected?
Is symfony/symfony affected?
What is the CVSS score of CVE-2023-46735?
What CWE is associated with CVE-2023-46735?
How can I check Packagist dependencies for CVE-2023-46735?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-72x2-5c85-6wmr",
"modified" : "2024-11-04T21:16:51Z",
"published" : "2023-11-12T15:53:29Z",
"aliases" : [ "CVE-2023-46735" ],
"summary" : "Symfony potential Cross-site Scripting in WebhookController",
"details" : "### Description\n\nThe error message in WebhookController returns unescaped user-submitted input.\n\n### Resolution\n\nWebhookController now doesn't return any user-submitted input in its response.\n\nThe patch for this issue is available [here](https://github.com/symfony/symfony/commit/8128c302430394f639e818a7103b3f6815d8d962) for branch 6.3.\n\n### Credits\n\nWe would like to thank Maxime Aknin for reporting the issue and to Nicolas Grekas for providing the fix.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/webhook"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.3.0"
}, {
"fixed" : "6.3.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.3.0"
}, {
"fixed" : "6.3.8"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/security/advisories/GHSA-72x2-5c85-6wmr"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-46735"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/commit/8128c302430394f639e818a7103b3f6815d8d962"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2023-46735.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/symfony/symfony"
}, {
"type" : "WEB",
"url" : "https://symfony.com/cve-2023-46735"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-11-12T15:53:29Z",
"nvd_published_at" : "2023-11-10T18:15:09Z"
}
}