一线运维实战手记 · 云计算 · 数据库 · 故障排查
2026年9月4日

CVE-2026-50554 [MEDIUM] – Note Mark is an open-source note-taking application. Prior to version 0.19.5, GET /api/boo

未分类
📑 文章目录

Note Mark is an open-source note-taking application. Prior to version 0.19.5, GET /api/books/{bookID}/notes is an unauthenticated endpoint that accepts a “deleted” query parameter. When the request is ?deleted=true, the service runs the query with Unscoped() (bypassing GORM’s soft-delete scope) but keeps the read-authorization clause as “owner_id = ? OR is_public = ?”. As a result, any unauthenticated caller can enumerate the metadata of soft-deleted (“trashed”) notes belonging to any public book — notes the owner explicitly deleted and expected to be removed from public view. This issue has been patched in version 0.19.5.