Keith
November 28, 2024, 3:41pm
1
After moving to NET9, I am seeing the problem defined in this StackOverflow posting: Vulnerability in System.Text.Json and System.Text.RegularExpressions after update to .NET 9 .
In my case, I see build warnings because of transitive dependencies in ServiceStack.Server and ServiceStack.OrmLite.SqlServer (version 8.5 and 8.4) for System.Text.RegularExpressions.
Are there any plans to fix this?
mythz
November 28, 2024, 3:52pm
2
The latest v8.5 of ServiceStack is referencing v8.0.5 of System.Text.Json which does not have any vulnerability against it.
We only maintain LTS builds inside ServiceStack packages so we only ever reference the highest LTS version available.
If you want to use a different version than LTS you’d need to explicitly reference it yourself.
Keith
November 28, 2024, 3:53pm
3
My issue is not Json but the RegEx dependency.
mythz
November 28, 2024, 3:55pm
4
ServiceStack packages doesn’t reference System.Text.RegularExpressions directly.
Keith
November 28, 2024, 3:58pm
5
True, it is being referenced via System.Xml.XmlDocument.
mythz
November 28, 2024, 3:59pm
6
Which we’re already referencing its latest 4.3.0 of System.Xml.XmlDocument :
<PackageReference Include="System.Xml.XmlDocument" Version="4.3.0" />
Keith
November 28, 2024, 4:20pm
7
So, I guess nothing can be done
For reference:
mythz
November 28, 2024, 4:33pm
8
Not unless they’re going to publish a new version with updated dependencies.
You could try explicitly referencing the newest version of RegularExpressions in your project.
mythz
November 28, 2024, 4:38pm
9
Actually doesn’t look like we need to reference System.Xml.XmlDocument
, so removing the references and will publish some pre-release packages.
Keith
November 28, 2024, 4:59pm
10
That would be great and very much appreciated.Thank you.
mythz
November 28, 2024, 4:59pm
11
Now available in the latest v8.5.1+ packages that’s now available from pre-release packages