Forum Discussion

Flyn's avatar
Flyn
Frequent Visitor
1 year ago
Solved

npgsql 4.0.10.0 not safe ?

I read that npgsql 4.0.10.0 have a critical problem.

 

 

According to the following image. Power bi combining with postgre database is not safe at all.

 

 

What do you guy think about it ?

 

Is it safe to use power bi with this config or do i have to go trough Qlikview or Tableau ?

 

Thanks

  • Hi Flyn -Try creating an environment variable or system path to explicitly point to the latest Npgsql version installed on your system.You could also consult your IT team to ensure Power BI configuration files (e.g., pbix files) are updated to work with newer drivers.

    By upgrading and configuring your connection carefully, you should be able to mitigate the risks without having to revert to vulnerable versions of Npgsql.

    Npgsql - .NET Access to PostgreSQL | Npgsql Documentation

     

    this may stem from the fact that certain applications or environments are configured to recognize only specific driver versions. While version 4.0.10 and earlier versions are considered vulnerable, installing a patched or later version of Npgsql (e.g., 4.1.x or higher) should resolve these vulnerabilities.

    Hope this information helps.

7 Replies

  • Hi Flyn -Using Power BI with PostgreSQL is generally considered safe, as long as you are using up-to-date drivers. Npgsql is the main data provider used for this connection. Ensuring that you have a stable and up-to-date Npgsql version significantly reduces risks.Security & Best Practices: Like with any BI tool, security also depends on your overall setup—this includes ensuring encrypted connections, proper role-based access control in PostgreSQL, and other database security best practices. The combination of Power BI and PostgreSQL can be secure when configured properly.

    as long as you are following good security practices and using up-to-date drivers (like Npgsql). If you are still using an older, vulnerable version, it’s highly recommended to upgrade to the latest stable release.

    GitHub - npgsql/npgsql: Npgsql is the .NET data provider for PostgreSQL.

     

    Hope this helps.

     

  • Flyn's avatar
    Flyn
    Frequent Visitor

    Hi rajendraongole1 thanks for you answer. I already have both feature you mentionned "this includes ensuring encrypted connections, proper role-based access control in PostgreSQL,..." but i change my computer and when i try to access to my postgre data base it said to download a NPGSQL version 4.0.10 or a older version. The 4.0.10 version and every older version are considerate "vulnerable". i don't know if it will work if i can install a patched version

    • rajendraongole1's avatar
      rajendraongole1
      Icon for Super User rankSuper User

      Hi Flyn -Try creating an environment variable or system path to explicitly point to the latest Npgsql version installed on your system.You could also consult your IT team to ensure Power BI configuration files (e.g., pbix files) are updated to work with newer drivers.

      By upgrading and configuring your connection carefully, you should be able to mitigate the risks without having to revert to vulnerable versions of Npgsql.

      Npgsql - .NET Access to PostgreSQL | Npgsql Documentation

       

      this may stem from the fact that certain applications or environments are configured to recognize only specific driver versions. While version 4.0.10 and earlier versions are considered vulnerable, installing a patched or later version of Npgsql (e.g., 4.1.x or higher) should resolve these vulnerabilities.

      Hope this information helps.

      • Flyn's avatar
        Flyn
        Frequent Visitor

        Ok. That mean despite of power bi indicate us to work with a "4.0.10 version or earlier", if i install a patched version it will work ?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Flyn ,

     

    For Power BI Desktop versions released before December 2019, you must install the NpgSQL provider on your local computer. However, after this date, NpgSQL 4.0.10 is shipped with Power BI Desktop and does not require an additional installation.

     

     

    You can refer to below document:

    Power Query PostgreSQL connector - Power Query | Microsoft Learn

     

    Best Regards,
    Adamk Kong

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • lbendlin's avatar
      lbendlin
      Icon for Super User rankSuper User

      Caveat: the driver was dropped from the gateway installer and must be re-added manually.

    • Flyn's avatar
      Flyn
      Frequent Visitor

      Hi Anonymous I'll try the 4.0.14 then if i have trouble i'll go with the 4.0.10. On my oldest computer i had to install manually the 4.0.10 version but since i change my laptop i have to re configure the npsql file