GHSA-9cq2-pcgr-8h62: Ezsystems/ezfind ls Cross-Site Scripting Vulnerability

HIGH
CWE-79
Published
Advisory Summary

GHSA-9cq2-pcgr-8h62 is a HIGH cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Ezsystems/ezfind ls libraries in the Packagist ecosystem. The issue involves cross-site scripting in ezfind spellcheck. Remediation is available by upgrading affected packages to version 2017.12.0.1, 5.4.11.1, 5.3.6.1.

GHSA-9cq2-pcgr-8h62 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-9cq2-pcgr-8h62
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Ezsystems/ezfind ls
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-9cq2-pcgr-8h62

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

ezsystems/ezfind-ls fixed: 2017.12.0.1
Upgrade ezsystems/ezfind-ls to 2017.12.0.1
ezsystems/ezfind-ls fixed: 5.4.11.1
Upgrade ezsystems/ezfind-ls to 5.4.11.1
ezsystems/ezfind-ls fixed: 5.3.6.1
Upgrade ezsystems/ezfind-ls to 5.3.6.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 ezsystems/ezfind-ls

How to Check if You Are Affected

To determine whether your application is affected by GHSA-9cq2-pcgr-8h62, inspect your project dependencies for Ezsystems/ezfind ls:

inspect dependencies for ezsystems/ezfind-ls

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

This security advisory fixes a vulnerability in the legacy eZ Find extension, which can be used with the LegacyBridge in eZ Platform. It affects sites using the "Did you mean...?" spell check / search suggestion feature. This feature is vulnerable to Cross-site Scripting (XSS) injection (reflected XSS). The update adds the necessary escaping of injected code. If you're affected, we recommend that you install it as soon as possible. If you have custom search templates, please make sure you update these as well. Ensure that "search_extras.spellcheck_collation" is followed by the "wash" operator, like this: {$search_extras.spellcheck_collation|wash} To install, use Composer to update to one of the "Resolving versions" mentioned above, or apply this patch manually: https://github.com/ezsystems/ezfind/commit/51c17ea9b1231c20db8221f34d01c649060f1e91

GHSA-9cq2-pcgr-8h62 Affected Ezsystems/ezfind ls Versions

3 component(s)
Fixed Versions:
2017.12.0.15.4.11.15.3.6.1
Product / Package Ecosystem Affected Versions Fixed Version
ezsystems/ezfind-ls
Packagist
≥ 2017.12.0
< 2017.12.0.1
2017.12.0.1
ezsystems/ezfind-ls
Packagist
≥ 5.4.0
< 5.4.11.1
5.4.11.1
ezsystems/ezfind-ls
Packagist
≥ 5.3.0
< 5.3.6.1
5.3.6.1

References

Frequently Asked Questions

What is GHSA-9cq2-pcgr-8h62?
GHSA-9cq2-pcgr-8h62 is a security vulnerability in Ezsystems/ezfind ls involving Cross-site Scripting in eZFind spellcheck under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Ezsystems/ezfind ls versions are affected?
Affected versions include releases prior to 2017.12.0.1, 5.4.11.1, 5.3.6.1 across affected packages: ezsystems/ezfind-ls.
What version fixes GHSA-9cq2-pcgr-8h62?
Upgrading to 2017.12.0.1, 5.4.11.1, 5.3.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ezsystems/ezfind-ls affected?
Yes, ezsystems/ezfind-ls is affected in releases prior to 2017.12.0.1, 5.4.11.1, 5.3.6.1. Upgrade your dependency to 2017.12.0.1, 5.4.11.1, 5.3.6.1 or later.
What CWE is associated with GHSA-9cq2-pcgr-8h62?
GHSA-9cq2-pcgr-8h62 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-9cq2-pcgr-8h62?
Run the dependency tree command: 'inspect dependencies for ezsystems/ezfind-ls'. 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-9cq2-pcgr-8h62",
  "modified" : "2024-05-15T21:07:54Z",
  "published" : "2024-05-15T21:07:54Z",
  "aliases" : [ ],
  "summary" : "Cross-site Scripting in eZFind spellcheck",
  "details" : "This security advisory fixes a vulnerability in the legacy eZ Find extension, which can be used with the LegacyBridge in eZ Platform. It affects sites using the \"Did you mean...?\" spell check / search suggestion feature. This feature is vulnerable to Cross-site Scripting (XSS) injection (reflected XSS). The update adds the necessary escaping of injected code. If you're affected, we recommend that you install it as soon as possible.\n \nIf you have custom search templates, please make sure you update these as well. Ensure that \"search_extras.spellcheck_collation\" is followed by the \"wash\" operator, like this:\n{$search_extras.spellcheck_collation|wash}\n \nTo install, use Composer to update to one of the \"Resolving versions\" mentioned above, or apply this patch manually:\nhttps://github.com/ezsystems/ezfind/commit/51c17ea9b1231c20db8221f34d01c649060f1e91",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ezsystems/ezfind-ls"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2017.12.0"
      }, {
        "fixed" : "2017.12.0.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ezsystems/ezfind-ls"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.4.0"
      }, {
        "fixed" : "5.4.11.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ezsystems/ezfind-ls"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.3.0"
      }, {
        "fixed" : "5.3.6.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ezsystems/ezfind/commit/51c17ea9b1231c20db8221f34d01c649060f1e91"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/ezsystems/ezfind-ls/2019-05-23-1.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ezsystems/ezfind"
  }, {
    "type" : "WEB",
    "url" : "https://share.ez.no/community-project/security-advisories/ezsa-2019-003-xss-in-ezfind-spellcheck"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20210614183107/https://share.ez.no/community-project/security-advisories/ezsa-2019-003-xss-in-ezfind-spellcheck"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-15T21:07:54Z",
    "nvd_published_at" : null
  }
}