# CVE-2026-141320: Metapi before 1.3.1 ADMIN_IP_ALLOWLIST Bypass via Spoofed X-Forwarded-For Header

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T15:43:33.834Z
- Modified: 2026-12-01T16:18:24.220Z
- Weaknesses: CWE-348
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- cita-777 metapi: before 1.3.1

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `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`
- VulnCheck: CVSS:3.1 3.8 Low `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/cita-777/metapi/issues/631> (issue-tracking)
- <https://github.com/cita-777/metapi/commit/14eadaff6113ba380cc35f807de64e412670c540> (patch)
- <https://github.com/cita-777/metapi/releases/tag/v1.3.1> (release-notes)
- <https://github.com/cita-777/metapi/blob/v1.3.0/src/server/middleware/auth.ts#L83-L93> (technical-description)
- <https://www.vulncheck.com/advisories/metapi-before-1.3.1-admin-ip-allowlist-bypass-via-spoofed-x-forwarded-for-header> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-141320](https://www.cve.org/CVERecord?id=CVE-2026-141320), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-141320](https://nvd.nist.gov/vuln/detail/CVE-2026-141320), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-141320 · Whole record: https://cve.day/CVE-2026-141320.json · Rebuilt by cve.day 2026-12-01T16:32:19.422Z
