Skip to content

8.2.0

Latest

Choose a tag to compare

@64J0 64J0 released this 12 Nov 23:11
f16466b

Breaking changes

  • Some security fixes for Giraffe - Credits @Thorium
    • New handlers added to improve security aspects, like safeRedirectTo, safeRedirectToExt, validateCsrfTokenExt and more. Those deal with:
      • URL validation in redirectTo to prevent cross-site scripting (XSS)
      • Cross-Site Request Forgery (CSRF) token validation helpers
    • XML serializer's Deserialize<'T>(xml: string) method now uses a configuration to prevent XXE attacks.
  • Remove [<AllowNullLiteral>] attribute from Json.ISerializer and Xml.ISerializer - Credits @64J0
    • With the release of .NET 9 we have nullable reference types.
    • When this feature is enabled (<Nullable>enable</Nullable>), our users started running into problems that boils down to Json.ISerializer having the AllowNullLiteral attribute.
    • Due to it, we decided to remove this attribute from both the Json.ISerializer and the Xml.ISerializer.
      • New automated tests were added to assert that the serializers are still working properly.
      • We also updated some sample projects to use this feature.

Other updates