Skip to content

HTML/XSS Injection Possibilities in Part-DB 1.0.0 and 1.0.1

High
jbtronics published GHSA-9pmh-gmxx-rg2x Feb 26, 2023

Package

Part-DB (Part-DB)

Affected versions

< 1.0.2

Patched versions

1.0.2

Description

Impact

On various locations, user input was not properly escaped, which allowed malicious users to inject arbitrary HTML into the pages. However, as the Content-Security-Policy forbids inline scripts and external scripts, it is not possible (or only in combination with other vulnerabilities) to execute JavaScript code.

Patches

Upgrade to Part-DB 1.0.2 or later for a fixed version.

Workarounds

There is no possibility to prevent this completely without upgrading. You should not click links to Part-DB given by untrusted users and only trusted users should have edit access to reduce the risk.

References

See this PR and the commits between v1.0.1 ... v1.0.2 which was affected exactly.

Severity

High

CVE ID

CVE-2023-26042

Weaknesses

Credits