CVE-2022-40365 ouqiang gocron Cross-site scripting vulnerability
Cross-site scripting in gocron allows attackers to execute arbitrary code via the hostname field in the task log interface.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2022-40365?
CVE-2022-40365 is a medium-severity cross-site scripting vulnerability in n/a, published on 14 Sep 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Cross site scripting (XSS) vulnerability in ouqiang gocron through 1.5.3, allows attackers to execute arbitrary code via scope.row.hostname in web/vue/src/pages/taskLog/list.vue.
Weakness: CWE-79
Which versions are affected by CVE-2022-40365?
2 open source packages ship an affected version, including github.com/ouqiang/gocron. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/ouqiang/gocron Go | All versions to 1.5.3 | None |
github.com/ouqiang/gocron Go | All versions to 1.5.3 | None |
Products include Gocron Project Gocron.
How do I fix CVE-2022-40365?
No fix has been published for CVE-2022-40365 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-40365 being exploited?
There is no known exploitation of CVE-2022-40365 in the wild and no public exploit code.
Sources
Also known as GHSA-r947-2crg-xc39.