ZCU-DATA/Security patches from vanilla DSpace 7.6.x (CVE-2024-38364, CVE-2025-53621/53622, CVE-2026-49830/49831)#1334
Open
milanmajchrak wants to merge 35 commits into
Open
Conversation
(cherry picked from commit f7dcbf1)
…y changes can be used. (cherry picked from commit 8c80b67)
(cherry picked from commit 99b2a63)
(cherry picked from commit 259c3dd)
(cherry picked from commit 45a9f8b)
(cherry picked from commit dda6d9e)
(cherry picked from commit e9bc74c)
(cherry picked from commit 7ac17f6)
* Safer Velocity configuration * New "message.templates.allowed-config" config * Remove "UnmodifiableConfiguration" in favour of a simple Map of whitelisted Config keys/values * Centralise Velocity config in core Utils * Small javadoc changes (cherry picked from commit b2d6141) (cherry picked from commit 5b31db5)
(cherry picked from commit 655fc62)
(cherry picked from commit 8a2eee9)
(cherry picked from commit 22bec44)
Removes some JDK >= 16 usage (cherry picked from commit 55905a2)
(cherry picked from commit 4502224)
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
text/javascript was added to bitstream-formats.xml by the CVE-2024-38364 fix, so the format registry now contains one more format. (equivalent of upstream commit 7143c97 from dspace-7_x)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security patches from vanilla DSpace 7.6.2 / 7.6.4 / 7.6.7
This branch (7.6.1-level base) was missing the security fixes that vanilla DSpace shipped in 7.6.2, 7.6.4 and 7.6.7 (final 7.x release). This PR cherry-picks the complete set from upstream
dspace-7_x, in release order:From 7.6.2
webui.content_disposition_format = *wildcard supported.text/javascriptadded to the format registry.(The branch already had the config-driven blocklist part of this fix; this PR adds the hardcoded enforcement + "unknown formats" handling from upstream.)
From 7.6.4
XMLUtils(DTD/external entities disabled)contentsfile: canonical-path validation of every referenced file + bitstream path containment inside the assetstore (DSBitStoreService)SimpleZipContentIngesterFrom 7.6.7
OREIngestionCrosswalkSecureFileAccess, curation output restricted to allowed base paths;-T/-roptions CLI-onlymessage.templates.allowed-config)GlobalRequestSecurityFilterrejecting path-traversal/JSP request patternsConfig changes
dspace.cfg:webui.content_disposition_formatcomments updated (HTML/XML/RDF/JS now enforced in code); newmessage.templates.allowed-configallowlistconfig/modules/curate.cfg: new commentedcurate.taskfile.base/curate.reporter.baseconfig/modules/oai.cfg: new commented ORE harvester URL-prefix allowlistconfig/registries/bitstream-formats.xml: addstext/javascript(applies to new installs; existing installs may load it via registry-loader)Behavioral notes
-T/-rare CLI-only; REST-triggered curation can no longer pass arbitrary file paths.message.templates.allowed-configif custom templates need more.Intentionally not included
webui.content_disposition_inlineallowlist rework) — behavior change, left for separate decision.Verification
mvn package(dspace-api + dspace-server-webapp) passes locally.🤖 Generated with Claude Code