CVE-2022-36097

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-36097
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-36097.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-36097
Aliases
Published
2022-09-08T20:35:11Z
Modified
2025-10-27T04:10:47.193624Z
Severity
  • 8.9 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L CVSS Calculator
Summary
XWiki Platform Attachment UI vulnerable to cross-site scripting in the move attachment form
Details

XWiki Platform Attachment UI provides a macro to easily upload and select attachments for XWiki Platform, a generic wiki platform. Starting with version 14.0-rc-1 and prior to 14.4-rc-1, it's possible to store JavaScript in an attachment name, which will be executed by anyone trying to move the corresponding attachment. This issue has been patched in XWiki 14.4-rc-1. As a workaround, one may copy moveStep1.vm to webapp/xwiki/templates/moveStep1.vm and replace vulnerable code with code from the patch.

Database specific
{
    "cwe_ids": [
        "CWE-79",
        "CWE-80"
    ]
}
References

Affected packages

Git / github.com/xwiki/xwiki-commons

Affected ranges

Type
GIT
Repo
https://github.com/xwiki/xwiki-commons
Events

Git / github.com/xwiki/xwiki-platform

Affected ranges

Type
GIT
Repo
https://github.com/xwiki/xwiki-platform
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

xwiki-application-calendar-1.*

xwiki-application-calendar-1.0

xwiki-platform-7.*

xwiki-platform-7.3-milestone-2
xwiki-platform-7.4-milestone-1
xwiki-platform-7.4-milestone-2

xwiki-platform-8.*

xwiki-platform-8.0-milestone-1
xwiki-platform-8.0-milestone-2
xwiki-platform-8.1-milestone-1
xwiki-platform-8.1-milestone-2
xwiki-platform-8.2-milestone-1
xwiki-platform-8.2-milestone-2
xwiki-platform-8.3-milestone-1

xwiki-platform-9.*

xwiki-platform-9.9-rc-2

xwiki-plugin-tag-1.*

xwiki-plugin-tag-1.1

Database specific

vanir_signatures

[
    {
        "source": "https://github.com/xwiki/xwiki-platform/commit/fbc4bfbae4f6ce8109addb281de86a03acdb9277",
        "target": {
            "file": "xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-api/src/test/java/org/xwiki/attachment/MovePageTest.java"
        },
        "deprecated": false,
        "signature_version": "v1",
        "id": "CVE-2022-36097-3730de9a",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "144112269652804985430326397908665468734",
                "57485369595556582975586920152560715028",
                "207927246977508328762372584778434905053",
                "194573596879976515878614722227395761160",
                "16499835398282794122322877264973357443",
                "277387515681275039967405855077853682550",
                "327156953449333079698111437528522796853",
                "5752128128646401303826784200461671809",
                "16763928384127996570742753923879648897",
                "14633324937345571916216106436705093076",
                "203286788004953815192606822542921980874",
                "18843157567650475615792466350873776264",
                "95203528425509402192216068284756057307",
                "160115172735591751467638760755811950835",
                "247133374109632728277349637892570889988",
                "165495629888299589995390965710926053194",
                "84608063636326994542030844398961951526",
                "109471534300483652042738688595425032876",
                "330842512226822451419400393701604569921"
            ]
        },
        "signature_type": "Line"
    },
    {
        "source": "https://github.com/xwiki/xwiki-platform/commit/fbc4bfbae4f6ce8109addb281de86a03acdb9277",
        "target": {
            "function": "submitMoveTargetAlreadyExists",
            "file": "xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-api/src/test/java/org/xwiki/attachment/MovePageTest.java"
        },
        "deprecated": false,
        "signature_version": "v1",
        "id": "CVE-2022-36097-7aed8cf3",
        "digest": {
            "length": 1572.0,
            "function_hash": "303656126860523265491399147678069883394"
        },
        "signature_type": "Function"
    },
    {
        "source": "https://github.com/xwiki/xwiki-platform/commit/fbc4bfbae4f6ce8109addb281de86a03acdb9277",
        "target": {
            "function": "submitMoveTargetEditNotAllowed",
            "file": "xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-api/src/test/java/org/xwiki/attachment/MovePageTest.java"
        },
        "deprecated": false,
        "signature_version": "v1",
        "id": "CVE-2022-36097-ec409297",
        "digest": {
            "length": 1344.0,
            "function_hash": "261912327777436896290540527530319039452"
        },
        "signature_type": "Function"
    }
]