CVE-2019-14470: Cosenary/instagram Cross-Site Scripting Vulnerability
MODERATECVE-2019-14470 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (General Security Weakness) affecting Cosenary/instagram libraries in the Packagist ecosystem. The issue involves cosenary instagram-php-api contains reflected xss vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2019-14470 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-2019-14470
To remediate this vulnerability, upgrade all affected Cosenary/instagram 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 cosenary/instagram to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for cosenary/instagram
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-14470, inspect your project dependencies for Cosenary/instagram:
inspect dependencies for cosenary/instagram
Analyze the terminal output to locate any version of Cosenary/instagram in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 General Security Weakness. In Cosenary/instagram, 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-2019-14470 Affected Cosenary/instagram Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cosenary/instagram
|
Packagist |
≤ 2.3
|
|
References
Frequently Asked Questions
What is CVE-2019-14470?
Which Cosenary/instagram versions are affected?
What version fixes CVE-2019-14470?
Is cosenary/instagram affected?
What is the CVSS score of CVE-2019-14470?
What CWE is associated with CVE-2019-14470?
How can I check Packagist dependencies for CVE-2019-14470?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gcv6-2v9c-rj48",
"modified" : "2023-07-07T13:52:40Z",
"published" : "2022-05-24T16:55:25Z",
"aliases" : [ "CVE-2019-14470" ],
"summary" : "Cosenary Instagram-PHP-API contains reflected XSS vulnerability",
"details" : "cosenary Instagram-PHP-API (aka Instagram PHP API V2), used in the UserPro plugin through 4.9.32 for WordPress, is vulnerable to cross-site scripting via the [example/success.php](https://github.com/cosenary/Instagram-PHP-API/blob/master/example/success.php#L36\n) error_description parameter.\n\nVulnerable code:\n\n```php\n if (isset($_GET['error'])) {\n echo 'An error occurred: ' . $_GET['error_description'];\n }\n```\n\nProof-of-Concept:\n\n`https://domain.tld/wp-content/plugins/userpro/lib/instagram/vendor/cosenary/instagram/example/success.php?error=&error_description=<PAYLOAD>`",
"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" : "Packagist",
"name" : "cosenary/instagram"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-14470"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cosenary/Instagram-PHP-API"
}, {
"type" : "WEB",
"url" : "https://github.com/cosenary/Instagram-PHP-API/blob/master/example/success.php#L33-L36"
}, {
"type" : "WEB",
"url" : "https://wpvulndb.com/vulnerabilities/9815"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/47304"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/154206/WordPress-UserPro-4.9.32-Cross-Site-Scripting.html"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-07T13:52:40Z",
"nvd_published_at" : "2019-09-04T20:15:00Z"
}
}