{
 "id": "WPSEC-2026-3560",
 "url": "https://wpsec.com/vuln/WPSEC-2026-3560/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-3560/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-3560/index.md",
 "title": "Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program – myCred <= 4.0.3 - Authenticated (Contributor+) SQL Injection via Badge Link Click Requirement",
 "description": "The myCred plugin for WordPress is vulnerable to SQL Injection via the Badge Plus link click requirement 'link' value in all versions up to, and including, 4.0.3 due to the value being concatenated directly into a SQL query without escaping or preparation. The requirement is saved through the mycred_save_badge_requirements AJAX action, which only checked the generic edit_posts capability and did not check access to the specific badge, and nested requirement values were not sanitized. This makes it possible for authenticated attackers, with Contributor-level access and above, to append additional SQL queries to existing queries and extract sensitive information from the database.",
 "plugin": {
  "slug": "mycred",
  "name": "Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program – myCred",
  "full_name": "Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program – myCred",
  "wordpress_org": "https://wordpress.org/plugins/mycred/",
  "advisories_url": "https://wpsec.com/vuln/plugin/mycred/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/mycred"
 },
 "type": "SQLI",
 "cwe": [
  "CWE-89"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.5,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "2.9",
    "from_inclusive": true,
    "to": "4.0.4",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 2.9 before 4.0.4"
  ]
 },
 "introduced_in": "2.9",
 "fixed_in": "4.0.4",
 "remediation": "Update to 4.0.4 or later.",
 "fix_released": "2026-11-19T12:10:10+00:00",
 "published": "2026-11-20T12:50:17+00:00",
 "updated": "2026-11-20T08:33:25.629177+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-3560/",
  "https://plugins.svn.wordpress.org/mycred/tags/4.0.4/",
  "https://wordpress.org/plugins/mycred/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/mycred",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Medium",
  "as_of": "2026-11-20"
 }
}