CVE-2022-29947 Woodpecker allows cross-site scripting (XSS) via build logs
An attacker can execute arbitrary scripts in the Woodpecker CI web interface via unescaped build logs, potentially compromising user sessions.
- 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
- Available
What is CVE-2022-29947?
CVE-2022-29947 is a medium-severity cross-site scripting vulnerability in n/a, published on 29 Apr 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
Woodpecker before 0.15.1 allows XSS via build logs because web/src/components/repo/build/BuildLog.vue lacks escaping.
Weakness: CWE-79
Which versions are affected by CVE-2022-29947?
3 open source packages ship an affected version, including github.com/woodpecker-ci/woodpecker. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/woodpecker-ci/woodpecker Go | All versions | 0.15.1 |
github.com/woodpecker-ci/woodpecker Go | All versions | 0.15.1 |
github.com/woodpecker-ci/woodpecker Go | All versions | 0.15.1 |
Products include Woodpecker-Ci Woodpecker.
How do I fix CVE-2022-29947?
Upgrade github.com/woodpecker-ci/woodpecker to 0.15.1 or later.
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-29947 being exploited?
There is no known exploitation of CVE-2022-29947 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-vmp5-c5hp-6c65, GO-2022-0440.