ServiceStack 6.9, which internally uses Handlebars 4.7.7.min.js

Currently, we are using ServiceStack 6.9, which internally uses Handlebars 4.7.7.min.js, which has a known vulnerability.

looks like it is fixed in 4.7.10. Could you please confirm which version of the service stack uses the fixed handlebars.js so that we can plan for an upgrade?

ServiceStack doesn’t use handlebars itself, the only place it’s included is in the embedded 3rd Party legacy v2 swagger-ui which hosts the old v2 of Swagger. For newer projects using Endpoint Routing we recommend upgrading to use the newer OpenAPI v3 options instead.

Given swagger-ui has abandoned v2 swagger-ui several years ago and there’s no maintained or update of swagger-ui with an upgraded handlebars.

But I’ve just manually upgraded our own interned copy of swagger-ui to use the latest handlebars-4.7.10.min.js dependency in this commit.

You will need to upgrade all your ServiceStack package deps to use 10.* to use it, e.g:

<PackageReference Include="ServiceStack" Version="10.*" />

v10 still includes support for:

  • .NETFramework 4.7.2
  • .NETFramework 6.0
  • .NETFramework 8.0
  • .NETFramework 10.0

This is available from ServiceStack v10.4.3+ that’s now available in the latest pre-release packages, that will be available future NuGet releases.

Hi,
Thanks for the quick fix. There are a few more reported. Can this be fixed?
swagger ui/lib/highlight.9.1.0.pack.js
swagger-ui/lib/jquery 1.12.4.min.js

Please note: We have a legacy application with >net frame work and we can not upgrade to OpenAPI v3 currently.

Since these libraries are so old they required changes the in the swagger-ui app itself to be able to make use of the latest versions in this commit.

This change is now available from the latest v10.4.3+ that’s now available in the pre-release packages.

Can you please test this version and report any issues as I would like to publish a new release on NuGet tomorrow.

Thanks for the quick fix. It worked. I will be waiting for the actual release to consume the build.

1 Like