Hangfire v1.7.3 Release Notes

Release Date: 2019-05-23 // almost 5 years ago
  • ๐Ÿš€ Release Notes

    ๐Ÿ”’ This version contains security fixes to prevent possible XSS attacks as described in #1441. They don't relate to user data submitted to Hangfire directly via method arguments, but it's recommended to upgrade anyway. If you are using Hangfire 1.6, please upgrade to version 1.6.26 instead.

    ๐Ÿ“ฆ Affected Packages Hangfire.Core โ‰ค 1.6.25, 1.7.0, 1.7.1, 1.7.2 Affected Platforms All, including .NET Core, .NET Framework, Mono of any version

    Steps to reproduce

    public static void Xss() { BackgroundJob.Enqueue(() =\> Xss2()); }public static void Xss2() { throw new Exception("\<script\>alert(1);\</script\>"); }
    

    Hangfire.Core

    • ๐Ÿ”’ SECURITY โ€“ Use HtmlEncode in all remaining places in Dashboard UI to prevent XSS attacks.
    • โž• Added โ€“ Added Dutch language, and updated missing translation on "Servers" page (by @r-win).
    • โž• Added โ€“ Cron.Never method for adding manual recurring jobs that never fire (by @michaltalaga).
    • ๐Ÿ›  Fixed โ€“ Add missing AddOrUpdate extension methods for the IRecurringJobManager interface.
    • ๐Ÿ—„ Deprecated โ€“ Unused HtmlHelper.FormatProperties method is now obsolete.

    Hangfire.SqlServer

    • ๐Ÿ›  Fixed โ€“ Wrong error message in migration script, when @CurrentSchemaVersion has a NULL value (by @penenkel).

    ๐Ÿ”’ Reporting security issues

    ๐Ÿš€ In order to give the community time to respond and upgrade we strongly urge you report all security issues privately. Please email us at [email protected] with details and we will respond ASAP. Security issues always take precedence over bug fixes and feature work. We can and do mark releases as "urgent" if they contain serious security fixes.