CVE-2016-4567: Mediaelement Cross-Site Scripting Vulnerability
MODERATECVE-2016-4567 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Mediaelement libraries in the npm ecosystem. The issue involves mediaelement vulnerable to reflected xss. Remediation is available by upgrading affected packages to version 2.11.1, 2.21.1, 3.5.15.
CVE-2016-4567 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2016-4567
To remediate this vulnerability, upgrade all affected Mediaelement dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install mediaelement@2.11.1
Upgrade contao-components/mediaelement to 2.21.1
Upgrade contao/core to 3.5.15
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls mediaelement
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2016-4567, inspect your project dependencies using npm:
npm ls mediaelement
Analyze the terminal output to locate any version of Mediaelement in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.11.1), your application is affected.
Note: The npm ls mediaelement command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
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 Mediaelement, 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-2016-4567 Affected Mediaelement Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mediaelement
|
npm |
< 2.11.1
|
2.11.1
|
|
contao-components/mediaelement
|
Packagist |
≥ 2.14.2
< 2.21.1
|
2.21.1
|
|
contao/core
|
Packagist |
≥ 3.0.0
< 3.5.15
|
3.5.15
|
References
Frequently Asked Questions
What is CVE-2016-4567?
Which Mediaelement versions are affected?
What version fixes CVE-2016-4567?
Is mediaelement affected?
Is contao-components/mediaelement affected?
What is the CVSS score of CVE-2016-4567?
What CWE is associated with CVE-2016-4567?
How can I check npm dependencies for CVE-2016-4567?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-277w-qpxr-2549",
"modified" : "2024-04-25T21:38:55Z",
"published" : "2022-05-17T03:35:09Z",
"aliases" : [ "CVE-2016-4567" ],
"summary" : "MediaElement Vulnerable to Reflected XSS ",
"details" : "Cross-site scripting (XSS) vulnerability in flash/FlashMediaElement.swf in MediaElement.js before 2.21.0, as used in WordPress before 4.5.2, allows remote attackers to inject arbitrary web script or HTML via an obfuscated form of the jsinitfunction parameter, as demonstrated by \"jsinitfunctio%gn.\"",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "mediaelement"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.11.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao-components/mediaelement"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.14.2"
}, {
"fixed" : "2.21.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.5.15"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-4567"
}, {
"type" : "WEB",
"url" : "https://github.com/johndyer/mediaelement/commit/34834eef8ac830b9145df169ec22016a4350f06e"
}, {
"type" : "WEB",
"url" : "https://github.com/mediaelement/mediaelement/commit/34834eef8ac830b9145df169ec22016a4350f06e"
}, {
"type" : "WEB",
"url" : "https://codex.wordpress.org/Version_4.5.2"
}, {
"type" : "WEB",
"url" : "https://contao.org/en/news/contao-3_5_15.html"
}, {
"type" : "WEB",
"url" : "https://core.trac.wordpress.org/changeset/37371"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/cure53/df34ea68c26441f3ae98f821ba1feb9c"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao-components/mediaelement/CVE-2016-4567.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core/CVE-2016-4567.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/johndyer/mediaelement/blob/master/changelog.md"
}, {
"type" : "WEB",
"url" : "https://github.com/mediaelement/mediaelement/blob/b992ccf5f0c04a207d98bbb0868420751a61ec90/changelog.md?plain=1#L1024"
}, {
"type" : "WEB",
"url" : "https://github.com/mediaelement/mediaelement/blob/master/changelog.md"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20170205142412/http://www.securitytracker.com/id/1035818"
}, {
"type" : "WEB",
"url" : "https://wordpress.org/news/2016/05/wordpress-4-5-2"
}, {
"type" : "WEB",
"url" : "https://wpvulndb.com/vulnerabilities/8488"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2016/05/07/2"
}, {
"type" : "WEB",
"url" : "http://www.securitytracker.com/id/1035818"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-25T21:38:55Z",
"nvd_published_at" : "2016-05-22T01:59:00Z"
}
}