Skip to content

Syft incorrectly identifies NuGet package "Newtonsoft.Json" as "Json.NET" with incorrect version #3665

Open
@100tomer

Description

What happened:
When scanning the NuGet package Newtonsoft.Json version 12.0.3, Syft incorrectly identifies the package as Json.NET instead of Newtonsoft.Json. Additionally, the version includes build metadata as 12.0.3.23909 instead of the correct 12.0.3.

What you expected to happen:

  • The package should be detected as Newtonsoft.Json, not Json.NET.
  • The version should be reported as 12.0.3.

Steps to reproduce the issue:

  1. Download the Newtonsoft.Json NuGet package (version 12.0.3) - https://www.nuget.org/packages/Newtonsoft.Json/12.0.3
  2. Run Syft to scan the extracted package directory.
    syft ./newtonsoft.json.12.0.3 --output json

Anything else we need to know?:
No

Environment:

  • Syft version: 1.19.0
  • OS: macOS Sequoia

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions