GHSA-6qvp-39mm-95v8

Suggest an improvement
Source
https://github.com/advisories/GHSA-6qvp-39mm-95v8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-6qvp-39mm-95v8/GHSA-6qvp-39mm-95v8.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-6qvp-39mm-95v8
Aliases
Published
2025-03-07T16:07:50Z
Modified
2025-03-07T19:16:50Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
com.xwiki.confluencepro:application-confluence-migrator-pro-ui Remote Code Execution via unescaped translations
Details

Impact

A user that doesn't have programming rights can execute arbitrary code when creating a page using the Migration Page template. A possible attack vector is the following:

  • Create a page and add the following content:
confluencepro.job.question.advanced.input={{/html}} {{async async="true" cached="false" context="doc.reference"}}{{groovy}}println("hello from groovy!"){{/groovy}}{{/async}}
  • Use the object editor to add an object of type XWiki.TranslationDocumentClass with scope USER.
  • Access an unexisting page using the MigrationTemplate
http://localhost:8080/xwiki/bin/edit/Page123?template=ConfluenceMigratorPro.Code.MigrationTemplate

It is expected that {{/html}} {{async async="true" cached="false" context="doc.reference"}}{{groovy}}println("hello from groovy!"){{/groovy}}{{/async}} will be present on the page, however, hello from groovy will be printed.

Patches

The issue will be fixed as part of v1.2. The fix was added with commit 35cef22

Workarounds

There are no known workarounds besides upgrading.

References

No references.

Database specific
{
    "cwe_ids":  [
        "CWE-95"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-03-07T16:07:50Z",
    "nvd_published_at":  "2025-03-07T16:15:40Z",
    "severity":  "CRITICAL"
}
References

Affected packages

Maven / com.xwiki.confluencepro:application-confluence-migrator-pro-ui

Package

Name
com.xwiki.confluencepro:application-confluence-migrator-pro-ui
View open source insights on deps.dev
Purl
pkg:maven/com.xwiki.confluencepro/application-confluence-migrator-pro-ui

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.0
Fixed
1.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-6qvp-39mm-95v8/GHSA-6qvp-39mm-95v8.json"