CVE-2019-25147
WordPress vulnerability analysis and mitigation

Overview

The Pretty Links WordPress plugin (versions up to 2.1.9) was identified with a Stored Cross-Site Scripting (XSS) vulnerability tracked as CVE-2019-25147. The vulnerability was discovered on June 12, 2019, and publicly disclosed on June 19, 2019. The security flaw exists in the track_link function where various IP headers and the referer header are insufficiently sanitized, affecting over 200,000 active installations (NinTechNet Blog).

Technical details

The vulnerability stems from the tracklink() function in the app/models/PrliUtils.php script, which retrieves user input for statistical purposes including HTTPREFERER, REQUESTURI, HTTPUSERAGENT, and user IP without proper validation or sanitization. The getcurrentclientip() function retrieves IP addresses from multiple untrusted sources including HTTPCLIENTIP, HTTPXFORWARDEDFOR, HTTPXFORWARDED, HTTPFORWARDEDFOR, and HTTPFORWARDED headers. The CVSS v3.1 score is 7.2 (High) according to Wordfence's assessment (Wordfence Advisory).

Impact

When administrators access the 'Pretty Links > Clicks' page to view statistics, the unsanitized IP and HTTP_REFERER values are displayed in the dashboard. This allows attackers to inject malicious JavaScript code that executes in the administrator's browser session, potentially leading to remote code execution. Additionally, the vulnerability can be exploited through CSV injection when exporting data, enabling offline attacks through malicious formulas in spreadsheet applications (NinTechNet Blog).

Mitigation and workarounds

Users should update to a version newer than 2.1.9 immediately. As an additional security measure, implementing Content-Security-Policy (CSP) directives in the WordPress backend can help prevent the execution of injected JavaScript code. The vulnerability was patched by implementing proper input validation and output escaping in the tracklink function ([WordPress Patch](https://plugins.trac.wordpress.org/changeset?sfpemail=&sfphmail=&reponame=&new=2108490%40pretty-link%2Ftrunk&old=2078274%40pretty-link%2Ftrunk&sfpemail=&sfph_mail=)).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-12966HIGH8.8
  • all-in-one-video-gallery
NoYesDec 06, 2025
CVE-2025-13907MEDIUM6.4
  • css3-buttons
NoNoDec 06, 2025
CVE-2025-13899MEDIUM6.4
  • tr-timthumb
NoNoDec 06, 2025
CVE-2025-13898MEDIUM6.4
  • ultra-skype-button
NoNoDec 06, 2025
CVE-2025-13896MEDIUM6.4
  • social-feed-gallery-portfolio
NoNoDec 06, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management