Giter Site home page Giter Site logo

Comments (18)

svenso avatar svenso commented on May 29, 2024 5

There is now a security issue on latest working version of image sharp (2.1.6):
GHSA-65x7-c272-7g7r

Edit:
In the mean time, there is a fixed 2.1.7 version available from ImageSharp: https://github.com/SixLabors/ImageSharp/releases/tag/v2.1.7

from pdfsharpcore.

johnwc avatar johnwc commented on May 29, 2024 4

@ststeiger Can you please comment on all these requests on updating for ImageSharp. This is becoming an issue.

from pdfsharpcore.

TonyValenti avatar TonyValenti commented on May 29, 2024 1

Hi @ststeiger -
I just created this PR:
https://github.com/ststeiger/PdfSharpCore/compare/master...TonyValenti:PdfSharpCore:master?expand=1

Which upgrades various packages, including ImageSharp, to their latest stable, secure versions.

from pdfsharpcore.

Thomas-HG avatar Thomas-HG commented on May 29, 2024 1

Is there any news on this subject ? We are using this great library but this issue starts to be a big pain on our side :(

Thanks !

from pdfsharpcore.

TonyValenti avatar TonyValenti commented on May 29, 2024

@dejanmauer - lots of folks are running into this issue. I am really hopeful that @ststeiger will enable us to use the latest version of ImageSharp easily.

I've created this branch:
https://github.com/TonyValenti/PdfSharpCore

That enables the latest version of ImageSharp for modern .NET versions and uses the older version for legacy .NET versions.

Here's to hoping @ststeiger incorporates it!

from pdfsharpcore.

TonyValenti avatar TonyValenti commented on May 29, 2024

Later today I'll be submitting a PR that contains everything necessary to resolve this security issue.

from pdfsharpcore.

johnwc avatar johnwc commented on May 29, 2024

Will it include being able to use v3 of ImageSharp. And the bigger question, will @ststeiger respond and approve the PR.

from pdfsharpcore.

TonyValenti avatar TonyValenti commented on May 29, 2024

Yes. V3 for modern .NET and V2 for framework.

We'll have to wait and see if the maintainer of this package accepts it.

from pdfsharpcore.

TonyValenti avatar TonyValenti commented on May 29, 2024

@johnwc - my PR is here if you want to take a look.

from pdfsharpcore.

johnwc avatar johnwc commented on May 29, 2024

What are the main differences between the two versions of ImageSharpImageSource? The two look almost exactly the same, minus a few method call differences. If that is the case, wouldn't it be better to just make the compile time directives within the few minor differences, rather than duplicate the code for each? I think it would be easier to maintain that way.

from pdfsharpcore.

TonyValenti avatar TonyValenti commented on May 29, 2024

@johnwc -
Here is a screen shot showing the compare:
image

In my experience, when you're dealing with subtle variances like this, you can easily get yourself in trouble by having a single file where you #if things in and out. It is much safer and easier to maintain to branch the file.

from pdfsharpcore.

johnwc avatar johnwc commented on May 29, 2024

It would be better to maintain one file with a few compile time directives, than two files with almost same code. Think of someone else coming in and only changing one file for a security flaw. If it was in the same file, it would be seen and updated at the same time. Also, visual studio makes it very clear on what directive is currently being worked on and debugged with its coloring of the enabled directive. In my 25 years of development, I have never come across an issue of compile time directives being in a file in relation to this version vs that version compiling. The directives make it very clear what is going on.

from pdfsharpcore.

TonyValenti avatar TonyValenti commented on May 29, 2024

That's not a big deal to me either way as long as we can get the maintainer to merge and publish an update.

from pdfsharpcore.

vebaspect avatar vebaspect commented on May 29, 2024

Bump. :)

from pdfsharpcore.

mtarlac avatar mtarlac commented on May 29, 2024

same problem here ;(

from pdfsharpcore.

tossnet avatar tossnet commented on May 29, 2024

#421

from pdfsharpcore.

balkarov avatar balkarov commented on May 29, 2024

+1

from pdfsharpcore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.