Skip to content

Transient Dependency on System.Drawing.Common v5.0.0 with Critical Vulnerability in nHapi 3.2.2 #678

@aarondglover

Description

@aarondglover

Description

We are using nHapi version 3.2.2 in a .NET application and have identified that it has a transitive dependency on System.Drawing.Common version 5.0.0, which currently has a critical security vulnerability marked against it (as reported by various security scanning tools such as GitHub Dependabot and others).

Issue

  • System.Drawing.Common v5.0.0 is not compatible with non-Windows platforms unless proper native dependencies are installed.
  • It also has a critical security vulnerability.
  • nHapi indirectly depends on this package — we’re not sure if it’s essential to the core functionality of the library.

Questions

  1. Is this dependency on System.Drawing.Common actually required by nHapi?
  2. If so, can it be updated to a more recent and secure version (e.g., 7.x or removed altogether if not used)?
  3. If it is used for legacy functionality (e.g., barcode/image rendering), can it be moved to an optional package or excluded from the core library?

We’d appreciate your advice or any planned mitigation steps.
Thanks for maintaining nHapi!

Environment

  • nHapi version: 3.2.2
  • Target framework: .NET 8 (cross-platform)
  • OS: Windows / Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions