CVE-2022-40490 Cross-site scripting in n/a

Medium 4.8 Published Updated

Attackers can execute arbitrary code via XSS by injecting payloads into file names in Tiny File Manager.

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

What is CVE-2022-40490?

CVE-2022-40490 is a medium-severity cross-site scripting vulnerability in n/a, published on 6 Feb 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

Tiny File Manager v2.4.7 and below was discovered to contain a Cross Site Scripting (XSS) vulnerability. This vulnerability allows attackers to execute arbitrary code via a crafted payload injected into the name of an uploaded or already existing file.

Weakness: CWE-79

Which versions are affected by CVE-2022-40490?

It affects 1 product.

Products include Prasathmani Tiny File Manager.

How do I fix CVE-2022-40490?

No fix has been published for CVE-2022-40490 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-2022-40490 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-40490 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-62gw-4h79-3mj6.

Is CVE-2022-40490 in your software?

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

Check your SBOMs for free