
Cloud Vulnerability DB
A community-led vulnerabilities database
A low-privileged user who has been invited as a viewer to a shared list in Karakeep can read the private highlight notes of the list owner (and any other user who bookmarked the same items). The highlights.getForBookmark tRPC endpoint checks that the caller has access to the bookmark (via list sharing), but the underlying query returns highlights from all users instead of scoping them to the requesting user.
The vulnerability is in packages/trpc/models/highlights.repo.ts, in the getForBookmark method (line 45–49):
async getForBookmark(bookmarkId: string): Promise<Highlight[]> {
return await this.db.query.highlights.findMany({
where: eq(highlights.bookmarkId, bookmarkId),
orderBy: [desc(highlights.createdAt), desc(highlights.id)],
});
}This query filters only by bookmarkId — there is no userId filter. Compare this with getAll() (line 60) and search() (line 99) in the same file, which both correctly include eq(highlights.userId, userId).
In the router (packages/trpc/routers/highlights.ts, line 59–67), the getForBookmark endpoint uses ensureBookmarkAccess, which grants access to anyone who can view the bookmark through a shared list. This means a viewer on a shared list can call this endpoint and receive highlights — including private notes — created by the bookmark owner or any other user.
Setup: two users, Alice (bookmark owner) and Bob (invited as viewer to Alice's shared list).
"SECRET: my bank password is 12345"getForBookmark endpoint with Alice's bookmark ID:
Bob receives Alice's highlight including her private note content, despite only having viewer access through the shared list.Any user invited as a viewer to a shared list can read the private highlight notes of all users who have highlights on bookmarks in that list. Highlight notes can contain sensitive personal information (passwords, credentials, personal thoughts). This is an information disclosure / IDOR vulnerability affecting all Karakeep instances where list sharing is used.
Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."