CVE-2022-1231

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-1231
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1231.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-1231
Downstream
Related
Published
2022-04-15T15:15:12Z
Modified
2025-10-21T06:47:06.797001Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

XSS via Embedded SVG in SVG Diagram Format in GitHub repository plantuml/plantuml prior to 1.2022.4. Stored XSS in the context of the diagram embedder. Depending on the actual context, this ranges from stealing secrets to account hijacking or even to code execution for example in desktop applications. Web based applications are the ones most affected. Since the SVG format allows clickable links in diagrams, it is commonly used in plugins for web based projects (like the Confluence plugin, etc. see https://plantuml.com/de/running).

References

Affected packages

Git / github.com/plantuml/plantuml

Affected ranges

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

Affected versions

v1.*

v1.2017.12
v1.2017.13
v1.2017.14
v1.2017.15
v1.2017.17
v1.2017.18
v1.2017.19
v1.2017.20
v1.2018.0
v1.2018.1
v1.2018.10
v1.2018.11
v1.2018.12
v1.2018.13
v1.2018.14
v1.2018.2
v1.2018.3
v1.2018.4
v1.2018.5
v1.2018.6
v1.2018.7
v1.2018.8
v1.2018.9
v1.2019.0
v1.2019.1
v1.2019.10
v1.2019.11
v1.2019.12
v1.2019.13
v1.2019.2
v1.2019.4
v1.2019.5
v1.2019.6
v1.2019.7
v1.2019.8
v1.2019.9
v1.2020.0
v1.2020.1
v1.2020.10
v1.2020.11
v1.2020.12
v1.2020.13
v1.2020.14
v1.2020.15
v1.2020.16
v1.2020.17
v1.2020.18
v1.2020.19
v1.2020.2
v1.2020.20
v1.2020.21
v1.2020.22
v1.2020.23
v1.2020.24
v1.2020.26
v1.2020.3
v1.2020.4
v1.2020.6
v1.2020.7
v1.2020.8
v1.2020.9
v1.2021.0
v1.2021.1
v1.2021.10
v1.2021.12
v1.2021.13
v1.2021.14
v1.2021.15
v1.2021.16
v1.2021.2
v1.2021.3
v1.2021.4
v1.2021.5
v1.2021.6
v1.2021.7
v1.2021.8
v1.2021.9
v1.2022.0
v1.2022.1
v1.2022.2
v1.2022.3

v2017.*

v2017.08
v2017.09
v2017.11

Other

v8059

Database specific

vanir_signatures

[
    {
        "source": "https://github.com/plantuml/plantuml/commit/c9137be051ce98b3e3e27f65f54ec7d9f8886903",
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-1231-43eea787",
        "target": {
            "function": "clean",
            "file": "src/net/sourceforge/plantuml/ugraphic/UImageSvg.java"
        },
        "digest": {
            "length": 353.0,
            "function_hash": "118556545927670513313701575114614573921"
        },
        "signature_type": "Function"
    },
    {
        "source": "https://github.com/plantuml/plantuml/commit/c9137be051ce98b3e3e27f65f54ec7d9f8886903",
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-1231-ac4ba91f",
        "target": {
            "file": "src/net/sourceforge/plantuml/ugraphic/UImageSvg.java"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "43241285753773073641643450967737150831",
                "54313203648108843556146230674289348359",
                "30506625181659746863680674345829973367",
                "81805176630048855343949906528815999487",
                "266320446447389298622633299613046112245",
                "108336938483043319451114043197858462856",
                "271048392914503143262235304722276763988",
                "56422101670177672750581376508777317902",
                "113367665898862182794560783402691340614",
                "330738383107258775734584518095986955733",
                "147670784536851008233629841046197948588",
                "324746494355619571981912964414829217360"
            ]
        },
        "signature_type": "Line"
    }
]