CVE-2017-20175: Mediawiki/matomo Cross-Site Scripting Vulnerability
MODERATECVE-2017-20175 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Mediawiki/matomo libraries in the Packagist ecosystem. The issue involves cross-site scripting in daschtour matomo-mediawiki-extension. Remediation is available by upgrading affected packages to version 2.4.3.
CVE-2017-20175 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.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2017-20175
To remediate this vulnerability, upgrade all affected Mediawiki/matomo 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 mediawiki/matomo to 2.4.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for mediawiki/matomo
How to Check if You Are Affected
To determine whether your application is affected by CVE-2017-20175, inspect your project dependencies for Mediawiki/matomo:
inspect dependencies for mediawiki/matomo
Analyze the terminal output to locate any version of Mediawiki/matomo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.3), 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 Mediawiki/matomo, 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-2017-20175 Affected Mediawiki/matomo Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mediawiki/matomo
|
Packagist |
< 2.4.3
|
2.4.3
|
References
Frequently Asked Questions
What is CVE-2017-20175?
Which Mediawiki/matomo versions are affected?
What version fixes CVE-2017-20175?
Is mediawiki/matomo affected?
What is the CVSS score of CVE-2017-20175?
What CWE is associated with CVE-2017-20175?
How can I check Packagist dependencies for CVE-2017-20175?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hc67-v29c-7g78",
"modified" : "2023-10-20T22:01:46Z",
"published" : "2023-02-05T21:30:25Z",
"aliases" : [ "CVE-2017-20175" ],
"summary" : "Cross-site Scripting in DaSchTour matomo-mediawiki-extension",
"details" : "A vulnerability classified as problematic has been found in DaSchTour matomo-mediawiki-extension up to 2.4.2. This affects an unknown part of the file Piwik.hooks.php of the component Username Handler. The manipulation leads to cross site scripting. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 2.4.3 is able to address this issue. The name of the patch is 681324e4f518a8af4bd1f93867074c728eb9923d. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-220203.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "mediawiki/matomo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.4.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-20175"
}, {
"type" : "WEB",
"url" : "https://github.com/DaSchTour/matomo-mediawiki-extension/pull/17"
}, {
"type" : "WEB",
"url" : "https://github.com/DaSchTour/matomo-mediawiki-extension/commit/681324e4f518a8af4bd1f93867074c728eb9923d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/DaSchTour/matomo-mediawiki-extension"
}, {
"type" : "WEB",
"url" : "https://github.com/DaSchTour/matomo-mediawiki-extension/releases/tag/v2.4.3"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.220203"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.220203"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-02-14T21:21:17Z",
"nvd_published_at" : "2023-02-05T20:15:00Z"
}
}