Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 954770 - <app-misc/anki-25.02.4: XSS attack via malicious shared deck allows access to arbitrary data on system
Summary: <app-misc/anki-25.02.4: XSS attack via malicious shared deck allows access to...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Security
URL:
Whiteboard: B2 [stable?]
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-04-27 01:30 UTC by Lucio Sauer
Modified: 2025-04-29 19:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucio Sauer 2025-04-27 01:30:10 UTC
Anki users can download shared decks that contain study material. These are generally considered safe.

-Anki's editor code needs access to private API endpoints, so it can do things like read the contents of an image from disk.
-Content authors can embed JavaScript inside individual fields [in shared decks]. When those fields are loaded into the editor, if the JavaScript is preserved, it could use those private endpoints to perform malicious acts.
-There is no evidence of this being exploited in the wild as of 2025-04-22.

Affected versions: <=25.02 with USE=gui
Fixed in: 25.02.4 (I pushed a PR that adds this version.)

Links:
https://github.com/ankitects/anki/releases/tag/25.02.4
https://github.com/ankitects/anki/issues/3935

Reproducible: Always
Comment 1 Hans de Graaff gentoo-dev Security 2025-04-27 06:41:16 UTC
Thanks for reporting. I've removed the version number from the title since we use that only for fixed versions in the gentoo repository. We'll update that once your PR is merged.
Comment 2 Larry the Git Cow gentoo-dev 2025-04-29 19:45:18 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca324d3ed46adadd49324b2b751f3ad9f7f265df

commit ca324d3ed46adadd49324b2b751f3ad9f7f265df
Author:     Lucio Sauer <watermanpaint@posteo.net>
AuthorDate: 2025-04-27 00:38:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-29 19:43:51 +0000

    app-misc/anki: add 25.02.4
    
    Bug: https://bugs.gentoo.org/953565
    Bug: https://bugs.gentoo.org/954770
    Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
    Part-of: https://github.com/gentoo/gentoo/pull/41783
    Closes: https://github.com/gentoo/gentoo/pull/41783
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/anki/Manifest            |   3 +
 app-misc/anki/anki-25.02.4.ebuild | 312 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 315 insertions(+)