Skip to content

Cross site scripting via cookies in gogs

Low severity GitHub Reviewed Published May 31, 2022 in gogs/gogs • Updated Jan 11, 2023

Package

gomod gogs.io/gogs (Go)

Affected versions

< 0.12.8

Patched versions

0.12.8

Description

Impact

There is no known practical impact other than it is just possible to manipulate CSRF cookie and XSS the malicious user self.

Patches

Invalid characters of CSRF tokens are stripped after reading cookie. Users should upgrade to 0.12.8 or the latest 0.13.0+dev.

Workarounds

No need for workarounds.

References

N/A

For more information

If you have any questions or comments about this advisory, please post on gogs/gogs#6953.

References

@unknwon unknwon published to gogs/gogs May 31, 2022
Published to the GitHub Advisory Database Jun 2, 2022
Reviewed Jun 2, 2022
Last updated Jan 11, 2023

Severity

Low

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-pj96-4jhv-v792

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.