Description
ViewVC before versions 1.1.28 and 1.2.1 has a XSS vulnerability in CVS show_subdir_lastmod support. The impact of this vulnerability is mitigated by the need for an attacker to have commit privileges to a CVS repository exposed by an otherwise trusted ViewVC instance that also has the `show_subdir_lastmod` feature enabled. The attack vector involves files with unsafe names (names that, when embedded into an HTML stream, would cause the browser to run unwanted code), which themselves can be challenging to create. This vulnerability is patched in versions 1.2.1 and 1.1.28.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| viewvc | viewvc | < 1.1.28, >= 1.2.0, < 1.2.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | viewvc | No fix yet | — |
| Ubuntu 16.04 LTS | viewvc | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP2 | viewvc | 1.1.28-bp152.4.3.1 | openSUSE-SU-2021:0145-1 |
| SUSE Package Hub 15 SP1 | viewvc | 1.1.28-bp151.4.3.1 | openSUSE-SU-2021:0119-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | viewvc | 1.3.0~dev20230104-1.1 | openSUSE-SU-2024:12857-1 |
| openSUSE Leap 15.2 | viewvc | 1.1.28-lp152.4.3.1 | openSUSE-SU-2021:0123-1 |
| openSUSE Leap 15.1 | viewvc | 1.1.28-lp151.3.3.1 | openSUSE-SU-2021:0084-1 |
Advisories 5
- openSUSE-SU-2021:0123-1 Security update for viewvc SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:0119-1 Security update for viewvc SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:0145-1 Security update for viewvc SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:0084-1 Security update for viewvc SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:12857-1 viewvc-1.3.0~dev20230104-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026