CVE-2023-46735: Symfony/webhook Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-72x2-5c85-6wmr
CVSS 6.1
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2023-46735
GHSA Identifier GHSA-72x2-5c85-6wmr
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Symfony/webhook
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

symfony/webhook fixed: 6.3.8
Upgrade symfony/webhook to 6.3.8
symfony/symfony fixed: 6.3.8
Upgrade symfony/symfony to 6.3.8
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/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

### Description The error message in WebhookController returns unescaped user-submitted input. ### Resolution WebhookController now doesn't return any user-submitted input in its response. The patch for this issue is available [here](https://github.com/symfony/symfony/commit/8128c302430394f639e818a7103b3f6815d8d962) for branch 6.3. ### Credits We would like to thank Maxime Aknin for reporting the issue and to Nicolas Grekas for providing the fix.

CVE-2023-46735 Affected Symfony/webhook Versions

2 component(s)
Fixed Versions:
6.3.8
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?
CVE-2023-46735 is a security vulnerability in Symfony/webhook involving Symfony potential Cross-site Scripting in WebhookController under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Symfony/webhook versions are affected?
Affected versions include releases prior to 6.3.8 across affected packages: symfony/webhook, symfony/symfony.
What version fixes CVE-2023-46735?
Upgrading to 6.3.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/webhook affected?
Yes, symfony/webhook is affected in releases prior to 6.3.8. Upgrade your dependency to 6.3.8 or later.
Is symfony/symfony affected?
Yes, symfony/symfony is affected in releases prior to 6.3.8. Upgrade your dependency to 6.3.8 or later.
What is the CVSS score of CVE-2023-46735?
CVE-2023-46735 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2023-46735?
CVE-2023-46735 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Packagist dependencies for CVE-2023-46735?
Run the dependency tree command: 'inspect dependencies for symfony/webhook'. 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-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"
  }
}