GHSA-jfxf-4frr-9j3q: Neos/neos Cross-Site Scripting Vulnerability

MODERATE
CWE-79
Published
Advisory Summary

GHSA-jfxf-4frr-9j3q is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Neos/neos libraries in the Packagist ecosystem. The issue involves xss in various backend modules due to (un)escaping in js notification module. Remediation is available by upgrading affected packages to version 5.3.10, 7.0.9, 7.1.7, 7.2.6, 7.3.4, 8.0.2.

GHSA-jfxf-4frr-9j3q at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-jfxf-4frr-9j3q
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Neos/neos
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-jfxf-4frr-9j3q

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

neos/neos fixed: 5.3.10
Upgrade neos/neos to 5.3.10
neos/neos fixed: 7.0.9
Upgrade neos/neos to 7.0.9
neos/neos fixed: 7.1.7
Upgrade neos/neos to 7.1.7
neos/neos fixed: 7.2.6
Upgrade neos/neos to 7.2.6
neos/neos fixed: 7.3.4
Upgrade neos/neos to 7.3.4
neos/neos fixed: 8.0.2
Upgrade neos/neos to 8.0.2
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 neos/neos

How to Check if You Are Affected

To determine whether your application is affected by GHSA-jfxf-4frr-9j3q, inspect your project dependencies for Neos/neos:

inspect dependencies for neos/neos

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

The notification module displaying flash messages unscapes HTML coming from the server, resulting in XSS vulnerabilities with various names and labels of entities (eg. workspace title or media title). This however means you must be a logged in user with respective rights in the first place to leverage the attack vector.

GHSA-jfxf-4frr-9j3q Affected Neos/neos Versions

6 component(s)
Fixed Versions:
5.3.107.0.97.1.77.2.67.3.48.0.2
Product / Package Ecosystem Affected Versions Fixed Version
neos/neos
Packagist
≥ 3.3
< 5.3.10
5.3.10
neos/neos
Packagist
≥ 7.0.0
< 7.0.9
7.0.9
neos/neos
Packagist
≥ 7.1.0
< 7.1.7
7.1.7
neos/neos
Packagist
≥ 7.2.0
< 7.2.6
7.2.6
neos/neos
Packagist
≥ 7.3.0
< 7.3.4
7.3.4
neos/neos
Packagist
≥ 8.0.0
< 8.0.2
8.0.2

References

Frequently Asked Questions

What is GHSA-jfxf-4frr-9j3q?
GHSA-jfxf-4frr-9j3q is a security vulnerability in Neos/neos involving XSS in various backend modules due to (un)escaping in JS notification module under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Neos/neos versions are affected?
Affected versions include releases prior to 5.3.10, 7.0.9, 7.1.7, 7.2.6, 7.3.4, 8.0.2 across affected packages: neos/neos.
What version fixes GHSA-jfxf-4frr-9j3q?
Upgrading to 5.3.10, 7.0.9, 7.1.7, 7.2.6, 7.3.4, 8.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is neos/neos affected?
Yes, neos/neos is affected in releases prior to 5.3.10, 7.0.9, 7.1.7, 7.2.6, 7.3.4, 8.0.2. Upgrade your dependency to 5.3.10, 7.0.9, 7.1.7, 7.2.6, 7.3.4, 8.0.2 or later.
What CWE is associated with GHSA-jfxf-4frr-9j3q?
GHSA-jfxf-4frr-9j3q 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-jfxf-4frr-9j3q?
Run the dependency tree command: 'inspect dependencies for neos/neos'. 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-jfxf-4frr-9j3q",
  "modified" : "2022-05-25T19:38:50Z",
  "published" : "2022-05-25T19:38:50Z",
  "aliases" : [ ],
  "summary" : "XSS in various backend modules due to (un)escaping in JS notification module",
  "details" : "The notification module displaying flash messages unscapes HTML coming from the server, resulting in XSS vulnerabilities with various names and labels of entities (eg. workspace title or media title). This however means you must be a logged in user with respective rights in the first place to leverage the attack vector.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "neos/neos"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.3"
      }, {
        "fixed" : "5.3.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "neos/neos"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.0.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "neos/neos"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.1.0"
      }, {
        "fixed" : "7.1.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "neos/neos"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.2.0"
      }, {
        "fixed" : "7.2.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "neos/neos"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.3.0"
      }, {
        "fixed" : "7.3.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "neos/neos"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/neos/neos-development-collection/security/advisories/GHSA-jfxf-4frr-9j3q"
  }, {
    "type" : "WEB",
    "url" : "https://discuss.neos.io/t/neos-bugfix-releases-5-3-10-7-0-9-7-1-7-7-2-6-7-3-4-8-0-2/5930?u=kdambekalns"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/neos/neos"
  }, {
    "type" : "WEB",
    "url" : "https://www.neos.io/blog/xss-in-various-backend-modules.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-05-25T19:38:50Z",
    "nvd_published_at" : null
  }
}