{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "7.7"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "1df01c93e48fed493c8d884e480690ca02874710"
            }
          ],
          "repo": "https://github.com/youphptube/youphptube",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "An issue was discovered in YouPHPTube through 7.7. User input passed through the live_stream_code POST parameter to /plugin/LiveChat/getChat.json.php is not properly sanitized (in getFromChat in plugin/LiveChat/Objects/LiveChatObj.php) before being used to construct a SQL query. This can be exploited by malicious users to, e.g., read sensitive data from the database through in-band SQL Injection attacks. Successful exploitation of this vulnerability requires the Live Chat plugin to be enabled.",
  "id": "CVE-2019-18662",
  "modified": "2026-04-01T23:10:12.247411544Z",
  "published": "2019-11-02T15:15:10.680Z",
  "references": [
    {
      "type": "WEB",
      "url": "http://seclists.org/fulldisclosure/2019/Dec/9"
    },
    {
      "type": "WEB",
      "url": "http://packetstormsecurity.com/files/155564/YouPHPTube-7.7-SQL-Injection.html"
    },
    {
      "type": "FIX",
      "url": "https://github.com/YouPHPTube/YouPHPTube/issues/2202"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}