Skip to content

Releases: kindspells/astro-shield

1.3.6

29 Apr 09:43
3a4882b
Compare
Choose a tag to compare

Fixes

  • This release fixes an issue present in generated CSP directives : #76

Autogenerated Changelog

Full Changelog: 1.3.5...1.3.6

1.3.5

12 Apr 22:02
7a76699
Compare
Choose a tag to compare

Security

  • Limit postinstall scripts for the development repository. In principle, this doesn't directly affect the distributed code of this library, but it helps to reduce some supply chain risks.

Autogenerated Changelog

Full Changelog: 1.3.4...1.3.5

1.3.4

02 Apr 09:29
b0ded0b
Compare
Choose a tag to compare

Security improvements

  • The script matcher now is able to detect malformed closing tags (containing "pseudo-attributes" that shouldn't be there according to the spec). This lets Astro-Shield to be more effective at removing a wider range of malicious injected scripts from dynamically generated content.
  • Some regular expressions have been reworked to mitigate the possibility polynomial or exponential execution time. This helps to prevent the possibility of DoS attacks via specially crafted strings intended to blow up the execution time of parsing code.

Autogenerated Changelog

Full Changelog: 1.3.3...1.3.4

1.3.3

31 Mar 12:08
9bfaadf
Compare
Choose a tag to compare

Minor fixes

  • The previous release (1.3.2) introduced a minor warning message that, although not really problematic, was quite annoying. That was fixed.

Autogenerated Changelog

Full Changelog: 1.3.2...1.3.3

1.3.2

31 Mar 11:16
ceaf828
Compare
Choose a tag to compare

Fixes

  • In previous releases, the introduction of allow-lists introduced a strange regression causing the generation of an inconsistent hashes module. This has been fixed now.

Security

  • This release contains important security fixes. It is advisable to upgrade as soon as possible.

Autogenerated Changelog

  • fix: ensure that allowed scripts are in hashes module by @castarco in #58
  • fix: do not trust integrity attribute when undeserved by @castarco in #59

Full Changelog: 1.3.1...1.3.2

1.3.1

30 Mar 01:17
db10a41
Compare
Choose a tag to compare

Development

  • Configure monorepo

Documentation

Autogenerated Changelog

Full Changelog: 1.3.0...1.3.1

1.3.0

27 Mar 17:04
504c88b
Compare
Choose a tag to compare

Security Fixes

If you were using Astro-Shield 1.2.0, it is quite relevant to upgrade to this new 1.3.0 version.

In this release we introduce many mitigations to some risks that were accidentally introduced in the past release with the new CSP headers generation for SSR content.

  • Now it will be mandatory to explicitly allow-list any cross-origin resource that might be loaded from dynamically generated pages. This is necessary to avoid the possibility that Astro-Shield accidentally "signs" malicious injected scripts or stylesheets.
  • It will also be possible to disallow SRI hashes generation for inline scripts or stylesheets, although we still allow them by default (we could change the default behavior in future releases, but we didn't want to introduce too many disruptive changes in a single release). The reason to disallow inline scripts in SSR content is the same as for the previous point, to protect the site against potential injections.

Other Changes

  • We introduced a new way to define the SRI configuration, while keeping the old way for now (with warning messages about future deprecation).

Autogenerated Changelog

Full Changelog: 1.2.0...1.3.0

1.2.0

26 Mar 15:53
4cd4de4
Compare
Choose a tag to compare

New Features

  • Now it is possible to generate CSP headers for SSR (dynamic) pages

Minor improvements

  • Improved some warning and error messages
  • The hashes module generation now creates intermediate directories in case they don't exist, avoiding some annoying problems.

Development

  • The code is now prepared for other improvements on the security headers front.

Autogenerated Changelog

Full Changelog: 1.1.0...1.2.0

1.1.0

15 Mar 17:51
f092571
Compare
Choose a tag to compare

Fixes

  • Improved warning and error messages
  • Improved documentation to cover edge cases and their workarounds

Performance

  • Improved caching logic for static assets processing

Autogenerated Changelog

Full Changelog: 1.0.1...1.1.0

1.0.1

13 Mar 22:31
50a01b7
Compare
Choose a tag to compare

Fixes

  • Fixed a regression in the package release pipeline

Autogenerated Changelog

Full Changelog: 1.0.0...1.0.1