{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "3.1"
              },
              {
                "fixed": "3.6.4"
              }
            ]
          },
          "events": [
            {
              "introduced": "58804282fe53b25a2d18f8bed35b8f6fc8f8a1a8"
            },
            {
              "fixed": "2367deb8e2c408a2d38e90d80b5a9580dbdff959"
            }
          ],
          "repo": "https://github.com/OpenSIPS/opensips",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3822d33c1c6b25832fdd88da1d23eed74be55b05"
            }
          ],
          "repo": "https://github.com/opensips/opensips",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "OpenSIPS versions 3.1 before 3.6.4 containing the auth_jwt module (prior to commit 3822d33) contain a SQL injection vulnerability in the jwt_db_authorize() function in modules/auth_jwt/authorize.c when db_mode is enabled and a SQL database backend is used. The function extracts the tag claim from a JWT without prior signature verification and incorporates the unescaped value directly into a SQL query. An attacker can supply a crafted JWT with a malicious tag claim to manipulate the query result and bypass JWT authentication, allowing impersonation of arbitrary identities.",
  "id": "CVE-2026-25554",
  "modified": "2026-04-01T23:09:01.983775315Z",
  "published": "2026-02-25T18:23:40.617Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://opensips.org/pub/opensips/3.6.4/ChangeLog"
    },
    {
      "type": "WEB",
      "url": "https://opensips.org/"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/opensips-auth-jwt-sql-injection-enables-jwt-authentication-bypass"
    },
    {
      "type": "FIX",
      "url": "https://github.com/OpenSIPS/opensips/commit/3822d33c1c6b25832fdd88da1d23eed74be55b05"
    },
    {
      "type": "FIX",
      "url": "https://github.com/OpenSIPS/opensips/pull/3807"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}