Security Updates for Neos and Flow

New releases of Neos and Flow fix numerous security issues:
 

Sebastian Kurfürst

What happened?

Earlier this year, we proactively reached out to the PHP Ecosystem Security Team who scanned the Neos and Flow codebases use state-of-the-art security LLM models of various providers.

In the last weeks, the Neos team has been busy triaging the results and preparing the fixes, which we are happy to get out to our community today.

As usual, we recommend to update as soon as possible.

As far as we know, none of the fixed vulnerabilities have been exploited in the wild so far.

For custom Flow Framework projects exposed on the Internet, we recommend immediate updates, to ensure your projects stay safe.

For Neos, the vulnerabilities need a valid login. The fixed Flow vulnerabilities are, to our knowledge, not directly triggerable as un-authenticated user with a default Neos installation.

What you need to do

Update Flow + Neos. Fixed versions are available for all maintained branches. For most projects this is a matter of running

composer update neos/flow neos/neos

and deploying the result. Check with composer show neos/flow and composer show neos/neos that you actually ended up on one of the fixed versions. The releases are plain patch-level updates; details and change logs are in the Flow release announcement on discuss.neos.io and Neos release announcement on discuss.neos.io and for the composer plugin.

After the updates, ensure to clear the caches:

./flow flow:cache:flush

Breaking Changes

  • Only a single trusted proxy header per type is supported
  • setting Neos.Flow.http.trustedProxies.proxies=* is now deprecated and is deemed insecure
  • Then/else arguments of FluidAdaptor condition ViewHelpers are now properly escaped.
    • The default <f:if> was not vulnerable. The fixed bugs were in ViewHelpers like <f:security.ifHasRole>.
  • IP pattern matching with IPv4-mapped IPv6 addresses has been improved.

Details about the breaking changes can be found in the release announcements:

Thank you

A big thanks goes out to The PHP Foundation, and especially Volker Dusch (edorian), for his support and analysis of Neos and Flow. Another Thank You goees out to our community members Gerhard Boden and Bernhard Zwein for their responsible disclosure via security (at) neos.io, giving us the time to prepare a fix before any details became public. That is exactly how we wish every security report would reach us. Thank you!

A big thank you to everyone who analysed, fixed, reviewed, tested and released:

Questions?

If you are unsure whether your project is affected or need a hand with the update, ask in the forum or on Slack. And if you ever come across a security issue in Neos, Flow or a related package, please do not post it in public but write to security (at) neos.io, so we can work on a fix together first.