{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4211",
 "modified": "2026-11-28T18:43:18Z",
 "published": "2026-11-28T18:43:18Z",
 "summary": "Perfect Survey <= 1.6.0 - Unauthenticated SQL Injection via 'ps_questions' and 'ID' Parameters",
 "details": "The perfect-survey plugin for WordPress is vulnerable to SQL Injection via the keys of the 'ps_questions' parameter of the save_question_data AJAX action and the 'ID' parameter of the add_question AJAX action in all versions up to, and including, 1.6.0. This is due to identifiers being passed only through sanitize_text_field() and then concatenated without quotes into SQL queries, with no numeric check or prepared statement, while both actions are registered for unauthenticated users. This makes it possible for unauthenticated attackers to append additional SQL queries to existing queries and extract sensitive information from the database.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "perfect-survey"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "0"
      },
      {
       "fixed": "2.0.0"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "all versions before 2.0.0"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4211/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/perfect-survey/tags/2.0.0/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/perfect-survey/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4211/",
  "cwe_ids": [
   "CWE-89"
  ],
  "vulnerability_type": "SQLI",
  "severity": "High",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
