CVE-2019-19619: Cross-site Scripting in Documize

Summary

14/04/2021
Yes i
Moderate
6.1

CVE-2019-19619: Cross-site scripting in github.com/documize/community. Affects github.com/documize/community versions < 1.76.3-0.20191119114751-a4384210d4d0. Fixed in 1.76.3-0.20191119114751-a4384210d4d0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Documize is a Go package that provides a platform for creating and managing documentation. It allows users to write content in Markdown format, which is then rendered and displayed on the platform. However, prior to version 3.5.1, Documize mishandled untrusted Markdown content, making it vulnerable to cross-site scripting (XSS) attacks. This means that an attacker could inject malicious code into the rendered HTML, potentially leading to the execution of arbitrary scripts in the context of the user's browser.

Vulnerability Detail

The vulnerability in Documize arises from the improper handling of untrusted Markdown content. By not properly sanitizing the input, an attacker can inject malicious code into the rendered HTML. This can result in various consequences, including the theft of sensitive information, session hijacking, defacement of the website, or the propagation of malware to other users. The vulnerability has a CVSS score of 6.1, indicating a moderate severity level.

How To Fix

Latest published version: v3.2.0+incompatible as of 23 Oct 2026

go get github.com/documize/community@v3.2.0+incompatible

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.76.3-0.20191119114751-a4384210d4d0

This is the first release that contains the fix.

go get github.com/documize/community@v1.76.3-0.20191119114751-a4384210d4d0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If updating to the latest version of Documize is not immediately feasible, a temporary workaround is to manually sanitize the Markdown content before rendering it. This can be done using the bluemonday HTML sanitizer library. Here is an example of how to use the sanitizer in Go:

github.com/microcosm-cc/bluemonday

func sanitizeMarkdown(markdown string) string {
    p := bluemonday.UGCPolicy()
    return p.Sanitize(markdown)
}

Conclusion

In conclusion, the vulnerability in Documize allows for cross-site scripting attacks due to the mishandling of untrusted Markdown content. To mitigate this vulnerability, it is crucial to update to version 3.5.1 or later, which includes the necessary fixes. Additionally, following secure coding practices and regularly monitoring for security updates is essential. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/documize/community →

Share this vulnerability

FAQ

The vulnerability allows an attacker to inject malicious code into the rendered HTML, potentially leading to various consequences such as data theft, session hijacking, website defacement, or the propagation of malware.

To protect your Documize installation, it is crucial to update to version 3.5.1 or later, which includes the necessary fixes for this vulnerability. Additionally, it is recommended to regularly monitor for security updates and follow best practices for secure coding and input validation.

At the time of this advisory, there are no known public exploits specifically targeting this vulnerability in Documize. However, it is always important to promptly apply security updates to mitigate the risk of potential exploits.

Yes, the CVSS score for this vulnerability is 6.1, indicating a moderate severity level.

References

How To Fix

Latest published version: v3.2.0+incompatible as of 23 Oct 2026

go get github.com/documize/community@v3.2.0+incompatible

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.76.3-0.20191119114751-a4384210d4d0

This is the first release that contains the fix.

go get github.com/documize/community@v1.76.3-0.20191119114751-a4384210d4d0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback