CVE-2021-4263 leanote history.js define cross site scripting

Low 3.5 Published Updated

Remote attackers can inject malicious scripts via the history.js define function in Leanote, potentially executing code in victim browsers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2021-4263?

CVE-2021-4263 is a low-severity cross-site scripting vulnerability in leanote, published on 21 Dec 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

A vulnerability, which was classified as problematic, has been found in leanote 2.6.1. This issue affects the function define of the file public/js/plugins/history.js. The manipulation of the argument content leads to cross site scripting. The attack may be initiated remotely. The identifier of the patch is 0f9733c890077942150696dcc6d2b1482b7a0a19. It is recommended to apply a patch to fix this issue. The identifier VDB-216461 was assigned to this vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2021-4263?

2 open source packages ship an affected version, including github.com/leanote/leanote. It affects 1 product.

PackageAffectedFixed in
github.com/leanote/leanote GoAll versions to 2.6.1None
github.com/leanote/leanote GoAll versions to 2.6.1None

Products include Leanote Leanote.

How do I fix CVE-2021-4263?

No fix has been published for CVE-2021-4263 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2021-4263 being exploited?

There is no known exploitation of CVE-2021-4263 in the wild and no public exploit code.

Sources

Also known as GHSA-6cmv-2548-82v4.

Is CVE-2021-4263 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free