Skip to main content
No exploitation reportedFix available

CVE-2022-31259

No exploitation reported by the sources we read.

  • Published2022-05-21
  • Fixed in1.12.9

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

The route lookup process in beego before 1.12.9 and 2.x before 2.0.3 allows attackers to bypass access control. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1).

Timeline

dates in UTC
  1. 2022-05-2119:15CVE publishedNVD

Versions per branch

OSV · NVD
beego/beego
BranchAffectedFixed in
1.12< 1.12.91.12.9
beego/beego
BranchAffectedFixed in
2.0< 2.0.32.0.3
Beego
BranchAffectedFixed in
1.12≤ 1.12.4no fix published
2.0≥ 2.0.0, ≤ 2.0.2no fix published

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Fix

  1. Update beego/beego to 1.12.9

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2022-05-21
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-qx32-f6g6-fcfr

Frequently asked questions

What is CVE-2022-31259?

The route lookup process in beego before 1.12.9 and 2.x before 2.0.3 allows attackers to bypass access control. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1).

Is CVE-2022-31259 actively exploited?

Active exploitation of CVE-2022-31259 has not been confirmed. Its EPSS score was 22.2% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-31259?

CVE-2022-31259 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running beego/beego? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record