CVE-2021-27938: Symbiote/silverstripe queuedjobs Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-xgpf-p52j-pf7m
CWE-79
Published
Advisory Summary

CVE-2021-27938 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Symbiote/silverstripe queuedjobs libraries in the Packagist ecosystem. The issue involves xss in createqueuedjobtask. Remediation is available by upgrading affected packages to version 3.0.2, 3.1.4, 4.0.7, 4.1.2, 4.2.4, 4.3.3, 4.4.3, 4.5.1, 4.6.4.

CVE-2021-27938 at a Glance

CVE Identifier CVE-2021-27938
GHSA Identifier GHSA-xgpf-p52j-pf7m
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 Symbiote/silverstripe queuedjobs
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2021-27938

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

symbiote/silverstripe-queuedjobs fixed: 3.0.2
Upgrade symbiote/silverstripe-queuedjobs to 3.0.2
symbiote/silverstripe-queuedjobs fixed: 3.1.4
Upgrade symbiote/silverstripe-queuedjobs to 3.1.4
symbiote/silverstripe-queuedjobs fixed: 4.0.7
Upgrade symbiote/silverstripe-queuedjobs to 4.0.7
symbiote/silverstripe-queuedjobs fixed: 4.1.2
Upgrade symbiote/silverstripe-queuedjobs to 4.1.2
symbiote/silverstripe-queuedjobs fixed: 4.2.4
Upgrade symbiote/silverstripe-queuedjobs to 4.2.4
symbiote/silverstripe-queuedjobs fixed: 4.3.3
Upgrade symbiote/silverstripe-queuedjobs to 4.3.3
symbiote/silverstripe-queuedjobs fixed: 4.4.3
Upgrade symbiote/silverstripe-queuedjobs to 4.4.3
symbiote/silverstripe-queuedjobs fixed: 4.5.1
Upgrade symbiote/silverstripe-queuedjobs to 4.5.1
symbiote/silverstripe-queuedjobs fixed: 4.6.4
Upgrade symbiote/silverstripe-queuedjobs to 4.6.4
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 symbiote/silverstripe-queuedjobs

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-27938, inspect your project dependencies for Symbiote/silverstripe queuedjobs:

inspect dependencies for symbiote/silverstripe-queuedjobs

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

A vulnerability has been identified in the Silverstripe CMS 3 and 4 version of the symbiote/silverstripe-queuedjobs module. A Cross Site Scripting vulnerability allows an attacker to inject an arbitrary payload in the CreateQueuedJobTask dev task via a specially crafted URL.

CVE-2021-27938 Affected Symbiote/silverstripe queuedjobs Versions

9 component(s)
Fixed Versions:
3.0.23.1.44.0.74.1.24.2.44.3.34.4.34.5.14.6.4
Product / Package Ecosystem Affected Versions Fixed Version
symbiote/silverstripe-queuedjobs
Packagist
≥ 3.0.0
< 3.0.2
3.0.2
symbiote/silverstripe-queuedjobs
Packagist
≥ 3.1.0
< 3.1.4
3.1.4
symbiote/silverstripe-queuedjobs
Packagist
≥ 4.0.0
< 4.0.7
4.0.7
symbiote/silverstripe-queuedjobs
Packagist
≥ 4.1.0
< 4.1.2
4.1.2
symbiote/silverstripe-queuedjobs
Packagist
≥ 4.2.0
< 4.2.4
4.2.4
symbiote/silverstripe-queuedjobs
Packagist
≥ 4.3.0
< 4.3.3
4.3.3
symbiote/silverstripe-queuedjobs
Packagist
≥ 4.4.0
< 4.4.3
4.4.3
symbiote/silverstripe-queuedjobs
Packagist
≥ 4.5.0
< 4.5.1
4.5.1
symbiote/silverstripe-queuedjobs
Packagist
≥ 4.6.0
< 4.6.4
4.6.4

References

Frequently Asked Questions

What is CVE-2021-27938?
CVE-2021-27938 is a security vulnerability in Symbiote/silverstripe queuedjobs involving XSS in CreateQueuedJobTask under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Symbiote/silverstripe queuedjobs versions are affected?
Affected versions include releases prior to 3.0.2, 3.1.4, 4.0.7, 4.1.2, 4.2.4, 4.3.3, 4.4.3, 4.5.1, 4.6.4 across affected packages: symbiote/silverstripe-queuedjobs.
What version fixes CVE-2021-27938?
Upgrading to 3.0.2, 3.1.4, 4.0.7, 4.1.2, 4.2.4, 4.3.3, 4.4.3, 4.5.1, 4.6.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symbiote/silverstripe-queuedjobs affected?
Yes, symbiote/silverstripe-queuedjobs is affected in releases prior to 3.0.2, 3.1.4, 4.0.7, 4.1.2, 4.2.4, 4.3.3, 4.4.3, 4.5.1, 4.6.4. Upgrade your dependency to 3.0.2, 3.1.4, 4.0.7, 4.1.2, 4.2.4, 4.3.3, 4.4.3, 4.5.1, 4.6.4 or later.
What CWE is associated with CVE-2021-27938?
CVE-2021-27938 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-2021-27938?
Run the dependency tree command: 'inspect dependencies for symbiote/silverstripe-queuedjobs'. 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-xgpf-p52j-pf7m",
  "modified" : "2021-03-24T17:41:15Z",
  "published" : "2021-03-24T17:42:02Z",
  "aliases" : [ "CVE-2021-27938" ],
  "summary" : "XSS in CreateQueuedJobTask",
  "details" : "A vulnerability has been identified in the Silverstripe CMS 3 and 4 version of the symbiote/silverstripe-queuedjobs module. A Cross Site Scripting vulnerability allows an attacker to inject an arbitrary payload in the CreateQueuedJobTask dev task via a specially crafted URL.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symbiote/silverstripe-queuedjobs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symbiote/silverstripe-queuedjobs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symbiote/silverstripe-queuedjobs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.0.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symbiote/silverstripe-queuedjobs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.1.0"
      }, {
        "fixed" : "4.1.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symbiote/silverstripe-queuedjobs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.2.0"
      }, {
        "fixed" : "4.2.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symbiote/silverstripe-queuedjobs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.3.0"
      }, {
        "fixed" : "4.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symbiote/silverstripe-queuedjobs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.4.0"
      }, {
        "fixed" : "4.4.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symbiote/silverstripe-queuedjobs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.5.0"
      }, {
        "fixed" : "4.5.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symbiote/silverstripe-queuedjobs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.6.0"
      }, {
        "fixed" : "4.6.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-27938"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symbiote/silverstripe-queuedjobs/CVE-2021-27938.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symbiote/silverstripe-queuedjobs/releases"
  }, {
    "type" : "WEB",
    "url" : "https://www.silverstripe.org/download/security-releases/cve-2021-27938"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-03-24T17:41:15Z",
    "nvd_published_at" : "2021-03-16T16:15:00Z"
  }
}