Cross-site Request Forgery (CSRF) Affecting code.gitea.io/gitea/routers/api/v1 package, versions <1.5.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.21% (59th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-CODEGITEAIOGITEAROUTERSAPIV1-2396331
  • published9 Feb 2022
  • disclosed9 Feb 2022
  • creditUnknown

Introduced: 9 Feb 2022

CVE-2021-45326  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade code.gitea.io/gitea/routers/api/v1 to version 1.5.2 or higher.

Overview

code.gitea.io/gitea/routers/api/v1 is a project that makes the easiest, fastest, and most painless way of setting up a self-hosted Git service.

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via API routes, as it allows users to access API routes using session cookies without a second check.

CVSS Scores

version 3.1