JHipster generator-jhipster
JHipster: Generated Applications Allow Stored XSS via Unrestricted Blob ContentType Opened as Same-Origin Blob
JHipster is a development platform to quickly generate, develop, and deploy modern web applications and microservice architectures. Prior to generator-jhipster 9.4.0 and react-jhipster 1.1.0, generated applications can persist attacker-controlled Blob data and companion ContentType values, return them through generated REST endpoints, and pass them to the generated openFile helper in generators/client/generators/common/templates/src/main/webapp/app/shared/jhipster/data-utils.ts.ejs. The helper uses the returned ContentType as the browser Blob MIME type and opens an object URL, so a normal authenticated user with write access to a Blob-bearing entity can store active HTML or SVG content that may execute under the application origin when a privileged user opens it. Exploitability depends on the generated application's content security policy and target-browser Blob behavior. This issue is fixed in generator-jhipster 9.4.0 and react-jhipster 1.1.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 9.4.0
Fixed in 9.4.0
- < 1.1.0
Fixed in 1.1.0
Mitigation
Upgrade generator-jhipster to 9.4.0 or later.
Upgrade react-jhipster to 1.1.0 or later.
References
- Vendor advisory github.com/jhipster/generator-jhipster/securit…
- Patch github.com/jhipster/generator-jhipster/pull/34…
- Patch github.com/jhipster/generator-jhipster/commit/…
1 more
- Release notes github.com/jhipster/generator-jhipster/release…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.