CVE-2019-14470 — instagram
MEDIUMCVE-2019-14470 is a medium-severity (CVSS 6.1) Cross-site Scripting (XSS) vulnerability in cosenary/instagram. 3 public exploit or proof-of-concept references are indexed, so weaponization risk is real. The records list no fixed version yet; check the vendor advisory below and apply the mitigations in the meantime.
Cosenary Instagram-PHP-API contains reflected XSS vulnerability
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
cosenary/instagramReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
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 error_description parameter.
Vulnerable code:
if (isset($_GET['error'])) {
echo 'An error occurred: ' . $_GET['error_description'];
}
Proof-of-Concept:
https://domain.tld/wp-content/plugins/userpro/lib/instagram/vendor/cosenary/instagram/example/success.php?error=&error_description=<PAYLOAD>
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | cosenary/instagram | all versions | No fix |
Affected Products
instagram-php-apiinstagram-php-api_projectuser prouserpropluginResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
WordPress Plugin UserPro 4.9.32 - Cross-Site Scripting
by Damian Ebelties · Aug 26, 2019
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for cosenary/instagram, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Remediation status
The records we use list no patched version of cosenary/instagram for CVE-2019-14470. Check the maintainer's advisory, and where your build allows, override or pin the dependency away from the vulnerable range.
Mitigate without a patch
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
How to detect CVE-2019-14470
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2019-14470 -u https://target- Template
- WordPress UserPro 4.9.32 - Cross-Site Scripting
- Severity
- medium
- Impact
- Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
- Remediation
- Update to the latest version of UserPro or apply the provided patch to fix the XSS vulnerability.
Template by ProjectDiscovery nuclei-templates (daffainfo), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2019-14470 in your dependencies?
Find it across Packagist, including transitive dependencies.