SixLabors.ImageSharp - Vulnurability

Hi,

I noticed that SixLabors.ImageSharp is now requiring a paid license to use. The version that is installed with Umbraco is 3.1.12, but is vulnerable. Do I need this package? Just leave it for now?

Hi @jason-delaplain

The ImageSharp author has back-ported the security fix into the v3 branch but that now enforces their licence model, so a licence would be required if you include the direct dependency. See:

You would need to wait for Umbraco to include this update as a transitive dependency, if you include it directly you would need a licence as per:

They do have a free community licence, you only need a paid licence if:

If you use a Six Labors library as a direct package dependency in closed-source software and your for-profit company or business exceeds 1M USD in annual gross revenue, you need a commercial license.

Justin

I saw Umbraco 13.16.4 with that fix.I guess it will come to v17 as well?

See: Image Processing | CMS 19.latest (Beta) | Umbraco Documentation

You need a licence if you are adding a direct dependency. A licence has always been required in that case - it is just now being enforced.

I’m by all means not trying to circumvent. I believe it’s working on Umbraco 17.7.2 with SixLabs 3.1.2, and I think that’s ok until I get further expense approved. Thank you.

Umbraco 17.8.0 should fix the issue.

That is odd, I just upgraded to 17.8.0 and i have checked and double-checked and I have no direct package references, it’s listed as transitive for both projects in the solution in Visual Studio and I still get failed builds when not running it in debug.

Anyone know if there are any other cases that might trigger this?

Hi @martinatorn

That shouldn’t be the case as far as I am aware, can you check you have no package references to any SixLabors libraries in your .csproj or Directory.Packages.props file?

What does the build output say and which project is it showing against?

Justin

Hi Justin,

Thanks for your reply. I found the issue which wasn’t related to Umbraco even though the updated reference in Umbraco triggered it. Another package also used SixLabors.ImageSharp and the higher version referenced by Umbraco.Cms triggered the warning when referencing that package.

/Martin