CVE-2021-36787: In2code/femanager Cross-Site Scripting Vulnerability
MODERATECVE-2021-36787 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting In2code/femanager libraries in the Packagist ecosystem. The issue involves cross-site scripting in the femanager typo3 extension. Remediation is available by upgrading affected packages to version 5.5.1, 6.3.1.
CVE-2021-36787 at a Glance
How to Fix CVE-2021-36787
To remediate this vulnerability, upgrade all affected In2code/femanager 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 in2code/femanager to 5.5.1
Upgrade in2code/femanager to 6.3.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for in2code/femanager
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-36787, inspect your project dependencies for In2code/femanager:
inspect dependencies for in2code/femanager
Analyze the terminal output to locate any version of In2code/femanager in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.5.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 In2code/femanager, 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-36787 Affected In2code/femanager Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
in2code/femanager
|
Packagist |
< 5.5.1
|
5.5.1
|
|
in2code/femanager
|
Packagist |
≥ 6.0.0
< 6.3.1
|
6.3.1
|
References
Frequently Asked Questions
What is CVE-2021-36787?
Which In2code/femanager versions are affected?
What version fixes CVE-2021-36787?
Is in2code/femanager affected?
What CWE is associated with CVE-2021-36787?
How can I check Packagist dependencies for CVE-2021-36787?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f3rf-v9qm-9c89",
"modified" : "2021-08-30T18:35:42Z",
"published" : "2021-09-01T18:36:51Z",
"aliases" : [ "CVE-2021-36787" ],
"summary" : "Cross-site Scripting in the femanager TYPO3 extension",
"details" : "The extension allows by default to upload SVG files when a logged in frontend user uploads a new profile image. This may lead to Cross-Site Scripting, when the uploaded SVG image is used as is on the website.\n\nNote: If SVG uploads are required, it is recommended to use the TYPO3 extension svg_sanitizer (added to TYPO3 core since versions 9.5.28, 10.4.18 and 11.3.0) to prevent upload of malicious SVG files or to set up a strict Content Security Policy for the destination folder of uploaded images.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "in2code/femanager"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.5.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "in2code/femanager"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-36787"
}, {
"type" : "WEB",
"url" : "https://github.com/in2code-de/femanager/commit/70f873c60f0e40ffd6a1300218ca368156fc1bf2"
}, {
"type" : "WEB",
"url" : "https://extensions.typo3.org/extension/femanager"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/in2code-de/femanager"
}, {
"type" : "WEB",
"url" : "https://github.com/in2code-de/femanager/releases/tag/6.3.1"
}, {
"type" : "WEB",
"url" : "https://typo3.org/help/security-advisories/security"
}, {
"type" : "WEB",
"url" : "https://typo3.org/security/advisory/typo3-ext-sa-2021-010"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/165675/TYPO3-femanager-6.3.0-Cross-Site-Scripting.html"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2022/Jan/53"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-08-30T18:35:42Z",
"nvd_published_at" : "2021-08-13T17:15:00Z"
}
}