CVE-2021-27938: Symbiote/silverstripe queuedjobs Cross-Site Scripting Vulnerability
MODERATECVE-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
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.
Upgrade symbiote/silverstripe-queuedjobs to 3.0.2
Upgrade symbiote/silverstripe-queuedjobs to 3.1.4
Upgrade symbiote/silverstripe-queuedjobs to 4.0.7
Upgrade symbiote/silverstripe-queuedjobs to 4.1.2
Upgrade symbiote/silverstripe-queuedjobs to 4.2.4
Upgrade symbiote/silverstripe-queuedjobs to 4.3.3
Upgrade symbiote/silverstripe-queuedjobs to 4.4.3
Upgrade symbiote/silverstripe-queuedjobs to 4.5.1
Upgrade symbiote/silverstripe-queuedjobs to 4.6.4
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
CVE-2021-27938 Affected Symbiote/silverstripe queuedjobs Versions
9 component(s)| 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?
Which Symbiote/silverstripe queuedjobs versions are affected?
What version fixes CVE-2021-27938?
Is symbiote/silverstripe-queuedjobs affected?
What CWE is associated with CVE-2021-27938?
How can I check Packagist dependencies for CVE-2021-27938?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}