Gitea 1.25.2 已发布
· 阅读需 5 分钟
我们很高兴宣布 Gitea 1.25.2 发布!我们强烈建议所有用户升级至此版本,因为它包含重要的安全修复并改善了整体稳定性。
我们修复了多项权限与认证问题,以提升整个平台的安全性与一致性:
权限与保护检查
- 修复了删除发布时的权限验证。
- 修正了通过变基更新合并请求时的分支保护检查。
- 修复了工单依赖项的权限检查。
- 修复了删除评论历史条目的验证。
信息泄漏防护
- 统一了“用户不存在”与“密码无效”的错误消息,以避免泄露账户是否存在。
- 解决了工单 #35984
- 防止草稿发布对无写入权限的用户可见。
- 更新 API 行为,使其返回签名中的电子邮件地址,而非用户资料中的电子邮件。
依赖项更新
- 将 golang.org/x/crypto 从 v0.43.0 更新至 v0.45.0,以解决关键安全问题 GO-2025-4134。
感谢 @d3struct1v3-create、@tartas1995 以及 forgejo 团队提供的安全信息。感谢 @wxiaoguang 和 @lunny 提供的补丁。
此版本包含 23 个合并请求,感谢社区贡献者们出色的工作。
如何安装或更新
从 Gitea 下载页面 获取我们预编译的二进制文件 — 请务必选择与您的平台兼容的版本。如需查阅安装或升级的详细步骤,请参考我们的安装文档。
特别感谢
我们还要感谢 Open Collective 上所有支持者,是你们的资助让我们得以持续运营。
正在寻找丝滑、省心的 Git 仓库管理方案? 了解 Gitea Cloud —— 一个全托管、可扩展的平台,致力于简化你的开发工作流。
以下 Changelog 保留英文原文,未作翻译,请与上游逐字核对。
Changelog
1.25.2 - 2025-11-23
- SECURITY
- ENHANCEMENTS
- BUGFIXES
- Disabled GCM OAuth2 flow attempts when OAuth2 itself is disabled which is part of (#36002) (#36004)
- Allow empty commit when merging pull request with squash style (#35989) (#36003)
- Fix container push tag overwriting (#35936) (#35954)
- Fix corrupted external render content (#35946) and upgrade golang.org/x packages (#35950)
- Limit reading bytes instead of ReadAll (#35928) (#35934)
- Use correct form field for allowed force push users in branch protection API (#35894) (#35908)
- Fix team member access check (#35899) (#35905)
- Fix conda null depend issue (#35900) (#35902)
- Set the dates to now when not specified by the caller (#35861) (#35874)
- Fix gogit ListEntriesRecursiveWithSize (#35862)
- Misc CSS fixes (#35888) (#35981)
- Don't show unnecessary error message to end users for DeleteBranchAfterMerge (#35937) (#35941)
- Load jQuery as early as possible to support custom scripts (#35926) (#35929)
- Allow to display embed images/pdfs when SERVE_DIRECT was enabled on MinIO storage (#35882) (#35917)
- Make OAuth2 issuer configurable (#35915) (#35916)
- Fix #35763: Add proper page title for project pages (#35773) (#35909)
- Fix avatar upload error handling (#35887) (#35890)
- Contribution heatmap improvements (#35876) (#35880)
- Remove padding override on
.ui .sha.label(#35864) (#35873) - Fix pull description code label background (#35865) (#35870)
