Skip to content

Transitive reference to vulnerable packages #2294

Description

@Papa-Tori

Microsoft.Data.SqlClient 5.1.4 references vulnerable versions of Microsoft.IdentityModel.JsonWebTokens and System.IdentityModel.Tokens.Jwt

image

Vulnerabilities associated:
https://github.com/advisories/GHSA-8g9c-28fc-mcx2
https://github.com/advisories/GHSA-59j7-ghrg-fj52

Activity

  1. ErikEJ commented on Jan 11, 2024

    @ErikEJ
    Contributor

    @flacidsnake This will be fixed in 5.2 preview 5 and 5.1.vNext as I understand it - in the meantime you can add explicit references

  2. Papa-Tori commented on Jan 11, 2024

    @Papa-Tori
    Author

    deprecated

    @flacidsnake This will be fixed in 5.2 preview 5 and 5.1.vNext as I understand it - in the meantime you can add explicit references

    Thanks for your answer. Unfortunately, updating those packages explicitly in my Azure Function results in Error 500.

  3. ErikEJ commented on Jan 12, 2024

    @ErikEJ
    Contributor

    @flacidsnake Error 500 is an http error, and not relevant in this context, you need to check your logs for the exact error and stack trace if you want help here.

  4. DavoudEshtehari commented on Jan 12, 2024

    @DavoudEshtehari
    Contributor

    This has been addressed on #2290 and will be shipped with the next hotfix to 5.1.

  5. Papa-Tori commented on Jan 30, 2024

    @Papa-Tori
    Author

    @flacidsnake Error 500 is an http error, and not relevant in this context, you need to check your logs for the exact error and stack trace if you want help here.

    @ErikEJ Just updated to the latest stable release, but the error remains. This is the error output:

    [2024-01-30T11:46:17.697Z] Executed 'SaveData' (Failed, Id=975e76a4-c444-4f32-860d-8c1504e629a8, Duration=282ms)
    [2024-01-30T11:46:17.699Z] System.Private.CoreLib: Exception while executing function: SaveData. ProjectData: Could not load file or assembly 'Microsoft.IdentityModel.Tokens, Version=6.35.0.0, Culture=neutral, PublicKeyToken=31bf3876ad364e35'. The system cannot find the file specified.
    

    image

    The library is in the bin folder, but it won't load.. Seems to be a problem with Azure Functions. The workaround to fix this is to add <_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput> in the csproj file.

    The odd thing is that it works if using Microsoft.Data.SqlClient version 5.1.1, which uses version 6.24.0.0 of Microsoft.IdentityModel.JsonWebTokens and Microsoft.IdentityModel.JsonWebTokens 🤯

    I'm using .net6.0 and Azure Functions v4.

  6. ErikEJ commented on Jan 30, 2024

    @ErikEJ
    Contributor

    @flacidsnake I think you need to address this with Azur Functions support

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions