fix(security): cherry-pick upstream v1.26.2 security and bug fixes #225
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Upstream Gitea v1.26.2 contains 12 security fixes and several high-impact bug fixes that need to be cherry-picked into MokoGitea. We are diverged from upstream so a full merge is not viable -- individual cherry-picks are required.
Security Fixes (Priority: Critical)
These address token theft, privilege escalation, and access control bypass:
5038561235fix(oauth): strengthen PKCE validation and refresh token replay protection (#37706)86cc3e8783fix(oauth): bind token exchanges to the original client request (#37704)519b8d6d88fix(security): enforce wiki git writes and LFS token access at request time (#37695)9c0ad8291bfix: Add missed token scope checking (#37735)2965b0c08afix(web): enforce token scopes on raw, media, and attachment downloads (#37698)a34eac5ef4fix: Unify public-only token filtering in API queries and repo access checks (#37118)6d2b02dac1fix(permissions): Fix reading permission (#37769)4ee74d7699FIX: URL sanitization to handle schemeless credentials (#37440)78899832ebFix attachment Content-Security-Policy (#37455)b88bad2a01Fix basic auth bug (#37503)5636219dbcchore(deps): bump go-git/go-git/v5 to 5.19.0 (security)57dd9f5babfix(deps): update dependency mermaid to v11.15.0 [security]Bug Fixes (Priority: High)
1c2d5e9b03fix(actions): make artifact signature payloads unambiguous (#37707)1d7b84922ffix(actions): wrong assumption that run id always >= job id (#37737)b586d80f97fix(actions): prevent panic when workflow contains null jobs (#37570)356a119f30fix(actions): validate workflow param to prevent 500 error (#37546)677ab982bffix(git): Fix smart http request scope bug (#37583)dd78d87dcdfix: merge autodetect cannot close other PRs (#37512)74e515623bFix allow maintainer edit permission check (#37479)e2b211f291Fix update branch protection order (#37508)ab0d52b4c7fix(auth): set User-Agent on avatar fetch and sync avatar on link-account register (#37564)Bug Fixes (Priority: Medium)
5eaa0bc603fix(packages): Add label for private and internal package and fix composer package source permission check (#37610)edfba678ecfix!: add DEFAULT_TITLE_SOURCE setting for pull request title default behavior (#37465)5632abff9eFix review submission from single-commit PR view (#37475)a859221a62fix(pull): handle empty pull request files view to allow reviews (#37783)631a9b5d16fix: make clone URL respect public URL detection setting (#37615)fb159eae8ffix: run as root check (#37622)Already Cherry-Picked
7b82ded82afix(actions): deadlock between PrepareRunAndInsert and UpdateTaskByState (#37692)c4a1ff7d16Fix scheduled action panic with null event payload (#37459)b79529015eDo not unblock run-level-concurrency-blocked runs in the resolver (#37461)3004c45607fix: Invalid UTF-8 commit messages in JSON API responses (#37542)Approach
Opened by Claude Code on behalf of @jmiller