Skip to content

Replace fast-xml-parser with txml to resolve CVEs #63

@aaronlippold

Description

@aaronlippold

Summary

@mitre/hdf-utilities depends on fast-xml-parser which pulls in fast-xml-builder. Both have active high/moderate CVEs:

These are the 5th and 6th CVEs for fast-xml-parser in 2025-2026.

Recommendation

Replace fast-xml-parser with txml:

  • Zero CVEs
  • Zero dependencies
  • Smaller bundle size
  • Bifrost already uses txml for all XML parsing (CCI, XCCDF) specifically because of these CVEs

The fast-uri transitive CVEs from ajv (GHSA-q3j6-qgpj-74h6, GHSA-v39h-62p7-jpjc) are a separate issue but also affect downstream consumers.

Impact

Every project that depends on @mitre/hdf-schema inherits these vulnerabilities in their dependency tree, causing pnpm audit and OSV-Scanner failures in CI.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions