Skip to content
Laskyr

Plugins · koko-analytics · data as of 2026-11-29

Is Koko Analytics safe? Known vulnerabilities and latest version

No known unpatched vulnerabilities in the latest version (2.5.3)

As of 2026-11-29. 2 issues are on record for older versions; version 2.1.3 or newer fixes all of them that state a fix.

Latest version
2.5.3
Last updated
2026-09-24
Active installs
70,000+
Known issues on record
2
Unpatched in latest
0
Tested up to WP
7.1.5 · PHP 7.4+

Privacy-friendly and lightweight Google Analytics alternative for WordPress sites. No cookies, just insights. — by Danny van Kooten

What to do

  1. Update to the latest version (2.5.3). Anything older than 2.1.3 has at least one known issue listed below. Dashboard → Updates, or Plugins → “update now”.
  2. If you cannot update right away, deactivate it until you can.
  3. Turn on auto-updates for it: Plugins → “Enable auto-updates” on its row.
  4. If you ran a vulnerable version and something looks off (spam pages, strange admins, redirects), run the free scan. Already hacked? We clean it for a flat $499 with a 30-day reinfection guarantee.

With WP-CLI: wp plugin get koko-analytics --field=version shows what you run; wp plugin update koko-analytics updates it.

Check your version

Running more than one plugin? Paste your whole plugin list and check them all at once.

Known vulnerabilities

2 on record, newest first. Versions come from the source; * marks the first wordpress.org release after the last affected version.

high 8.3 CVE-2026-22850 · published 2026-01-19

SQL injection in Koko Analytics (older than 2.1.3)

Affected
older than 2.1.3
Fixed in
2.1.3
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
NVD analysis · score by security-advisories@github.com
Details from the advisory

Koko Analytics is an open-source analytics plugin for WordPress. Versions prior to 2.1.3 are vulnerable to arbitrary SQL execution through unescaped analytics export/import and permissive admin SQL import. Unauthenticated visitors can submit arbitrary path (`pa`) and referrer (`r`) values to the public tracking endpoint in src/Resources/functions/collect.php, which stores those strings verbatim in the analytics tables. The admin export logic in src/Admin/Data_Export.php writes these stored values directly into SQL INSERT statements without escaping. A crafted path such as "),('999','x');DROP TABLE wp_users;-- breaks out of the value list. When an administrator later imports that export file, the import handler in src/Admin/Data_Import.php reads the uploaded SQL with file_get_contents, performs only a superficial header check, splits on semicolons, and executes each statement via $wpdb->query with no validation of table names or statement types. Additionally, any authenticated user with manage_koko_analytics can upload an arbitrary .sql file and have it executed in the same permissive way. Combined, attacker-controlled input flows from the tracking endpoint into exported SQL and through the import execution sink, or directly via malicious uploads, enabling arbitrary SQL execution. In a worst-case scenario, attackers can achieve arbitrary SQL execution on the WordPress database, allowing deletion of core tables (e.g., wp_users), insertion of backdoor administrator accounts, or other destructive/privilege-escalating actions. Version 2.1.3 patches the issue.

NVD CVE-2026-22850drive.google.comgithub.comgithub.com

medium 6.1 CVE-2024-8662 · published 2024-09-24

Reflected cross-site scripting (XSS) in Koko Analytics (1.3.12 and older)

Affected
1.3.12 and older
Fixed in
1.3.13 *
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record · score by Wordfence
Details from the advisory

The Koko Analytics plugin for WordPress is vulnerable to Reflected Cross-Site Scripting due to the use of add_query_arg without appropriate escaping on the URL in all versions up to, and including, 1.3.12. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

NVD CVE-2024-8662Wordfence advisoryCode change (fix)Plugin source

Recent activity

Browse vulnerabilities

Questions about Koko Analytics

Is Koko Analytics safe to use?

No known unpatched vulnerabilities in the latest version (2.5.3). As of 2026-11-29. 2 issues are on record for older versions; version 2.1.3 or newer fixes all of them that state a fix. Laskyr does not give safety verdicts. Keep Koko Analytics on the latest version (2.5.3) and remove it if you do not use it.

Which versions of Koko Analytics are vulnerable?

Known issues on record (newest first): SQL injection (older than 2.1.3, fixed in 2.1.3); Reflected cross-site scripting (XSS) (1.3.12 and older, fixed in 1.3.13). The full list with sources is on this page.

What is the latest version of Koko Analytics?

2.5.3, according to wordpress.org (last updated 2026-09-24). It has 70,000+ active installs.

What should I do if my Koko Analytics is out of date?

Take a backup, then update it from Dashboard > Updates (or run wp plugin update koko-analytics). If you cannot update right away, deactivate it until you can. If you think the site was already attacked, run a free scan at https://laskyr.com/scan.

Where this data comes from

Badge for your site or docs (states facts with a date, not a verdict):
Koko Analytics vulnerability status badge
<a href="https://laskyr.com/plugins/koko-analytics"><img src="https://laskyr.com/plugins/koko-analytics/badge.svg" alt="Koko Analytics vulnerability status"></a>

← Check another plugin · Free hacked-site scan

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit

The box is optional and does not affect the kit. Privacy policy.