PrettyLinks <= 3.6.20 - Authenticated (Administrator+) SQL Injection via 's' Parameter

4.9
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE CVE-2026-5062
CVSS 4.9 (Medium)
Publicly Published August 4, 2026
Last Updated August 5, 2026
Researcher Michael Iden (Mickhat) - Hack The Box

Description

The PrettyLinks – Affiliate Links, Link Branding, Link Tracking, Marketing and Stripe Payments Plugin plugin for WordPress is vulnerable to SQL Injection via the 's' (search) parameter on the Pretty Links listing page in all versions up to, and including, 3.6.20. This is due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query in the `search_links_table()` function. This makes it possible for authenticated attackers, with Administrator-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

Learn more about SQL Injection vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for PrettyLinks – Affiliate Link Management, URL Shortener, Link Cloaking, Tracking & Branded Short Links

Software Type Plugin
Software Slug pretty-link (view on wordpress.org)
Patched? Yes
Remediation Update to version 3.6.21, or a newer patched version
Affected Version
  • <= 3.6.20
Patched Version
  • 3.6.21

Recent vulnerabilities in PrettyLinks – Affiliate Link Management, URL Shortener, Link Cloaking, Tracking & Branded Short Links

# Title CVE ID CVSS Researchers Date
1 Shortlinks by Pretty Links <= 3.6.15 - Missing Authorization CVE-2025-48247 4.3 domiee13 May 19, 2025
2 Shortlinks by Pretty Links <= 3.6.2 - Reflected Cross-Site Scripting via post_status CVE-2024-29770 6.1 Rafie Muhammad March 25, 2024
3 Pretty Links – Affiliate Links, Link Branding, Link Tracking & Marketing Plugin <= 3.6.3 - Cross-Site Request Forgery to Plugin Settings Update CVE-2024-2326 4.3 Webbernaut March 22, 2024
4 Shortlinks by Pretty Links <= 3.4.0 - Cross-Site Request Forgery via route CVE-2022-47149 4.3 Muhammad Daffa April 13, 2023
5 Pretty Links <= 2.1.9 - Unauthenticated Stored Cross-Site Scripting via track_link CVE-2019-25147 7.2 Jerome Bruandet June 19, 2019
6 Pretty Links – Link Management, Branding, Tracking & Sharing Plugin <= 1.6.7 - SQL Injection CVE-2015-9457 7.2 Marcin Probola July 8, 2015
7 Pretty Links Lite < 1.6.3 - Stored Cross-Site Scripting CVE-2013-1636 7.2 hip August 1, 2014
8 Pretty Links – Link Management, Branding, Tracking & Sharing Plugin < 1.5.6 - Reflected Cross-Site Scripting CVE-2011-4595 6.1 Am!r December 4, 2011

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation