GHSA-5gmf-3c43-q73v: Zendframework/zendframework Cross-Site Scripting Vulnerability

MODERATE
CVSS 6.1
CWE-79
Published
Advisory Summary

GHSA-5gmf-3c43-q73v is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Zendframework/zendframework libraries in the Packagist ecosystem. The issue involves zendframework vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 2.0.1.

GHSA-5gmf-3c43-q73v at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-5gmf-3c43-q73v
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 Zendframework/zendframework
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 GHSA-5gmf-3c43-q73v

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

zendframework/zendframework fixed: 2.0.1
Upgrade zendframework/zendframework to 2.0.1
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 zendframework/zendframework

How to Check if You Are Affected

To determine whether your application is affected by GHSA-5gmf-3c43-q73v, inspect your project dependencies for Zendframework/zendframework:

inspect dependencies for zendframework/zendframework

Analyze the terminal output to locate any version of Zendframework/zendframework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.1), 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 Zendframework/zendframework, 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

`Zend\Debug`, `Zend\Feed\PubSubHubbub`, `Zend\Log\Formatter\Xml`, `Zend\Tag\Cloud\Decorator`, `Zend\Uri`, `Zend\View\Helper\HeadStyle, Zend\View\Helper\Navigation\Sitemap`, and `Zend\View\Helper\Placeholder\Container\AbstractStandalone` were not using `Zend\Escaper` when escaping HTML, HTML attributes, and/or URLs. While most were performing some escaping, because they were not using context-appropriate escaping mechanisms, they could potentially be exploited to perform Cross Site Scripting (XSS) attacks.

GHSA-5gmf-3c43-q73v Affected Zendframework/zendframework Versions

1 component(s)
Fixed Versions:
2.0.1
Product / Package Ecosystem Affected Versions Fixed Version
zendframework/zendframework
Packagist
≥ 2.0.0
< 2.0.1
2.0.1

References

Frequently Asked Questions

What is GHSA-5gmf-3c43-q73v?
GHSA-5gmf-3c43-q73v is a security vulnerability in Zendframework/zendframework involving ZendFramework vulnerable to Cross-site Scripting under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Zendframework/zendframework versions are affected?
Affected versions include releases prior to 2.0.1 across affected packages: zendframework/zendframework.
What version fixes GHSA-5gmf-3c43-q73v?
Upgrading to 2.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is zendframework/zendframework affected?
Yes, zendframework/zendframework is affected in releases prior to 2.0.1. Upgrade your dependency to 2.0.1 or later.
What is the CVSS score of GHSA-5gmf-3c43-q73v?
GHSA-5gmf-3c43-q73v 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 GHSA-5gmf-3c43-q73v?
GHSA-5gmf-3c43-q73v 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 GHSA-5gmf-3c43-q73v?
Run the dependency tree command: 'inspect dependencies for zendframework/zendframework'. 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-5gmf-3c43-q73v",
  "modified" : "2024-06-07T20:50:55Z",
  "published" : "2024-06-07T20:50:55Z",
  "aliases" : [ ],
  "summary" : "ZendFramework vulnerable to Cross-site Scripting",
  "details" : "`Zend\\Debug`, `Zend\\Feed\\PubSubHubbub`, `Zend\\Log\\Formatter\\Xml`, `Zend\\Tag\\Cloud\\Decorator`, `Zend\\Uri`, `Zend\\View\\Helper\\HeadStyle, Zend\\View\\Helper\\Navigation\\Sitemap`, and `Zend\\View\\Helper\\Placeholder\\Container\\AbstractStandalone` were not using `Zend\\Escaper` when escaping HTML, HTML attributes, and/or URLs. While most were performing some escaping, because they were not using context-appropriate escaping mechanisms, they could potentially be exploited to perform Cross Site Scripting (XSS) attacks.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zendframework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/zendframework/zendframework/commit/07d847b705911da6a15257f64895f69cab7ad50c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zendframework/zendframework/commit/0a78cb2b633a618ac514eadef2c19ef78b1e12f2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zendframework/zendframework/commit/27131ca9520bdf1d4c774c71459eba32f2b10733"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zendframework/zendframework/commit/6791343f8c8cd1948315a87eb15e16b57e08bc71"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zendframework/zendframework/commit/6f57175753a238388b4811b9b0786b6d5866a208"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zendframework/zendframework/commit/7f48d9edf82bcd7ece9d189d836682be83d08e91"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zendframework/zendframework/commit/a36406ddea52fd294b291310be00c526df6b713a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zendframework/zendframework/commit/ad3628bc2c05c297af4492330885d49f373e1e91"
  }, {
    "type" : "WEB",
    "url" : "https://framework.zend.com/security/advisory/ZF2012-03"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework/ZF2012-03.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zendframework/zendframework"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-07T20:50:55Z",
    "nvd_published_at" : null
  }
}