Impact
Until this Part-DB 1.17.1, users could upload SVG files containing JS code, that would be executed if a user opened the SVG in a new tab, allowing for a XSS vulnerability. This was only possible if the SVG files were explicitly opened in a new tab, if the file was embedded inside a Part-DB tab, then there was no risk.
Patches
Patched with Part-DB 1.17.1.
For older installations with existing assets, running the sanitation command on the existing files is recommended (see https://nvd.nist.gov/vuln/detail/CVE-2025-5007)
SVG uploads get now sanitized from script content and correct content-security-policy for svg files for apache webservers is set automatically.
Workarounds
Add content-security-policy for static SVG files in server config or forbid attachment upload for untrusted users.
References
https://github.com/Part-DB/Part-DB-server/releases/tag/v1.17.1
https://nvd.nist.gov/vuln/detail/CVE-2025-5007
Impact
Until this Part-DB 1.17.1, users could upload SVG files containing JS code, that would be executed if a user opened the SVG in a new tab, allowing for a XSS vulnerability. This was only possible if the SVG files were explicitly opened in a new tab, if the file was embedded inside a Part-DB tab, then there was no risk.
Patches
Patched with Part-DB 1.17.1.
For older installations with existing assets, running the sanitation command on the existing files is recommended (see https://nvd.nist.gov/vuln/detail/CVE-2025-5007)
SVG uploads get now sanitized from script content and correct content-security-policy for svg files for apache webservers is set automatically.
Workarounds
Add content-security-policy for static SVG files in server config or forbid attachment upload for untrusted users.
References
https://github.com/Part-DB/Part-DB-server/releases/tag/v1.17.1
https://nvd.nist.gov/vuln/detail/CVE-2025-5007