CVE-2022-40083 is a critical-severity (CVSS 9.6) Open Redirect vulnerability in github.com/labstack/echo/v4. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for github.com/labstack/echo/v4 — see the affected versions and patch details below.
Labstack Echo Open Redirect vulnerability
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA’s SSVC triage for CVE-2022-40083.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
github.com/labstack/echo/v4Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
Labstack Echo v4.8.0 was discovered to contain an open redirect vulnerability via the Static Handler component. This vulnerability can be leveraged by attackers to cause a Server-Side Request Forgery (SSRF). Version 4.9.0 contains a patch for the issue.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/labstack/echo/v4 | all versions | 4.9.0go get github.com/labstack/echo/v4@v4.9.0 |
Affected Products
echolabstackResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/labstack/echo/v4, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/labstack/echo/v4 to 4.9.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-40083 is resolved across your whole dependency graph.
Workarounds
Stop reflecting attacker-controlled destinations: resolve every redirect target against an allowlist of paths or hosts you own, prefer a server-side key over a full URL in the request, and reject absolute URLs entirely where the flow only ever needs a relative one.
How to detect CVE-2022-40083
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2022-40083 -u https://target- Template
- Labstack Echo 4.8.0 - Open Redirect
- Severity
- critical
- Impact
- Successful exploitation of this vulnerability could lead to phishing attacks, credential theft,.
- Remediation
- Download and install 4.9.0, which contains a patch for this issue.
Template by ProjectDiscovery nuclei-templates (pdteam), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2022-40083 in your dependencies?
Find it across Go, including transitive dependencies.