{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "1.3.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "14eadaff6113ba380cc35f807de64e412670c540"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v1.3.1",
                "range": [
                  {
                    "fixed": "14eadaff6113ba380cc35f807de64e412670c540"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "14eadaff6113ba380cc35f807de64e412670c540"
            }
          ],
          "repo": "https://github.com/cita-777/metapi",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-348"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141320.json"
  },
  "details": "Metapi before 1.3.1 contains an IP allowlist bypass vulnerability in the admin API middleware in src/server/middleware/auth.ts that trusts the client-supplied X-Forwarded-For header. Attackers holding the AUTH_TOKEN can set X-Forwarded-For to an allowlisted address to reach the admin API and manage stored API keys and account credentials.",
  "id": "CVE-2026-141320",
  "modified": "2026-12-01T16:45:43.044190108Z",
  "published": "2026-12-01T15:43:33.834Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141320.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/cita-777/metapi"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/cita-777/metapi/blob/v1.3.0/src/server/middleware/auth.ts#L83-L93"
    },
    {
      "type": "FIX",
      "url": "https://github.com/cita-777/metapi/commit/14eadaff6113ba380cc35f807de64e412670c540"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/cita-777/metapi/issues/631"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/cita-777/metapi/releases/tag/v1.3.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-141320"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/metapi-before-1.3.1-admin-ip-allowlist-bypass-via-spoofed-x-forwarded-for-header"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Metapi before 1.3.1 ADMIN_IP_ALLOWLIST Bypass via Spoofed X-Forwarded-For Header"
}