VDB
Sign up
HIGH7.5

GHSA-v8f2-2ghq-9whv

Gitea forwarded-proto validation allows canonical URL spoofing

Quick fix

GHSA-v8f2-2ghq-9whv — code.gitea.io/gitea: upgrade to the fixed version with the command below.

go get code.gitea.io/gitea@v1.25.5

Details

Gitea versions before 1.25.5 accept malformed or injected forwarded-proto values when detecting public URLs, allowing spoofed canonical URL generation.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/code.gitea.io/gitea
Introduced in: 0Fixed in: 1.25.5
Fixgo get code.gitea.io/gitea@v1.25.5

References