This is a security release. See the documentation for more information on the upgrade procedure.
- Security
A change introduced in Forgejo v1.21 allows a Forgejo user with write permission on a repository description to inject a client-side script into the web page viewed by the visitor. This XSS allows for
href
in anchor elements to be set to ajavascript:
URI in the repository description, which will execute the specified script upon clicking (and not upon loading).AllowStandardURLs
is now called for the repository description policy, which ensures that URIs in anchor elements aremailto:
,http://
orhttps://
and thereby disallowing thejavascript:
URI.
- Bug fixes
- PR (backported): disallow javascript: URI in the repository description
- Localization
- PR (backported): i18n: backport of #4568 #4668 and #4783 to v7