script-src Problems

mf mfeindt 08 Oct, 2026

Hi,

We are trying to hardening our websites against XSS attacks.

We therefore make the following settings in Joomla’s http-header Plugin:

  • Nonce: activated
  • Script-Hashes: activated
  • Style-Hashes: activated
  • Frame-ancestors ‘self’: activated
  • Despite other settings we set the following Policy Directive:
    • script-src
    • ‘self’ ‘unsafe-hashes’ ‘sha256-xxxx’

But now we encounter an issue with your component chronoforms8 as it renders the scripts without Joomla’s WebAssetManager and therefore no nonce is added and your scripts gets blocked. Yes we can and already did some sha-exceptions for your inline scripts and it works so far so good.

But we cannot be sure to have added all possible scripts, when something changed to the form, the sha's might be different und scripts gets blocked again.

Can you please extend your component to add scripts and styles always using Joomla’s WebAssetManager?

Best Regards

Max_admin Max_admin 26d ago

Hi mfeindt

But we cannot be sure to have added all possible scripts, when something changed to the form

If you mean that if we add more scripts to the form page then I do not think new script file calls will be added.

Do you have a page with the problem so that I can test it ? or can you include screenshots of the scripts with the problem ?

ChronoForms adds the script tags to page source, but your security headers should be on the web server level, and that will catch any script called on the page, but I think you are using a Joomla Plugin for that instead, is this the problem ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Post a Reply