Part-DB-server: Part-DB: Stored HTML injection in BOM validation results via unescaped Part name
What fixes it
- 2.12.2+part-db/part-db-server, composerGitHub
composer require "part-db/part-db-server:^2.12.2+"
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
Part-DB is an open source inventory management system for electronic components. Prior to version 2.12.2, Part-DB renders BOM validation information messages using Twig's |raw filter. These messages include translated placeholders populated with user-controlled Part names. A user who can edit a Part name can store HTML markup in the Part name. When another user imports a BOM CSV referencing that Part ID, the malicious Part name is rendered as HTML in the victim's BOM validation result page. This results in a cross-user stored HTML injection issue. JavaScript execution appears to be blocked by the current Content Security Policy, but arbitrary HTML links, forms, images, and CSS-based UI elements can still be injected into a trusted Part-DB page. This issue has been patched in version 2.12.2.
Text from CVE List
Affected versions 2
- Part-DB-serveraffected: < 2.12.2CVE List
- part-db/part-db-server, composer<= 2.12.1GitHub