GHSA-cj3w-g42v-wcj6 ibexa/fieldtype-richtext allows access to external entities in XML

Not scored Published

An attacker with editor privileges can exploit XXE in RichText fields to read server files, requiring a patch to remove unsafe XML elements.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-cj3w-g42v-wcj6?

GHSA-cj3w-g42v-wcj6 is a vulnerability in ibexa/fieldtype-richtext, published on 10 Apr 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Impact

This security advisory resolves a vulnerability in the RichText field type. By entering a maliciously crafted input into the RichText XML, an attacker could perform an attack using XML external entity (XXE) injection, which might be able to read files on the server. To exploit this vulnerability the attacker would need to already have edit permission to content with RichText fields, which typically means Editor role or higher. The fix removes unsafe elements from XML code, while preserving safe elements.

If you have a stored XXE attack in your content drafts, the fix prevents it from extracting data both during editing and preview. However, if such an attack has already been published and the result is stored in the content, it is unfortunately not possible to detect and remove it by automatic means.

Credits

This vulnerability was discovered and reported to Ibexa by Dennis Henke, Thorsten Niephaus, Marat Aytuganov, and Stephan Sekula of Compass Security Deutschland GmbH. We thank them for reporting it responsibly to us.

Patches

Workarounds

  • Exploitation requires edit access to RichText content. If you can trust your editors, and you don't grant edit permission to any externals, you are not at risk in practice.

References

Which versions are affected by GHSA-cj3w-g42v-wcj6?

2 open source packages ship an affected version, including ibexa/fieldtype-richtext.

PackageAffectedFixed in
ibexa/fieldtype-richtext PackagistFrom 4.6.0-beta14.6.19
ibexa/fieldtype-richtext PackagistFrom 4.6.0-beta14.6.19

How do I fix GHSA-cj3w-g42v-wcj6?

Upgrade ibexa/fieldtype-richtext to 4.6.19 or later.

Is GHSA-cj3w-g42v-wcj6 being exploited?

There is no known exploitation of GHSA-cj3w-g42v-wcj6 in the wild and no public exploit code.

Sources

Is GHSA-cj3w-g42v-wcj6 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free