Cross Site Scripting (XSS) Vulnerability in Patchwork Package

patchwork Updated 02 Oct 2025

Summary

10/07/2019
N/A
Yes i
Medium
6.1

ALPINE-CVE-2019-13122: A Cross Site Scripting (XSS) vulnerability exists in the template tag used to render message ids in Patchwork v1.1 through v2.1.x. Affects patchwork versions < 1.1.3-r1. Fixed in 1.1.3-r1. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Patchwork is an open-source tool designed for managing patches and contributions to software projects. It facilitates the tracking of patches submitted via email, allowing developers to review and apply them efficiently. However, versions 1.1 through 2.1.x of Patchwork are vulnerable to a Cross Site Scripting (XSS) attack, which can compromise the integrity of the application and its users.

Vulnerability Detail

The vulnerability arises from the improper handling of message IDs in the template rendering process within Patchwork. Specifically, the function 'msgid' in the file 'templatetags/patch.py' allows an attacker to inject malicious JavaScript or HTML into the patch detail page. This can occur when an email containing a crafted message ID is processed by Patchwork, potentially leading to unauthorized actions being executed in the context of the user's session. The ramifications include data theft, session hijacking, and the spread of malware, making this a significant security concern.

How To Fix

Minimum fixed version

1.1.3-r1

This is the first release that contains the fix.

sudo apk add --upgrade patchwork

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

Workaround

As a temporary measure, users can sanitize inputs and avoid processing untrusted message IDs until the package is updated. Implementing strict validation on the input data can help mitigate the risk of XSS attacks.

Conclusion

The Cross Site Scripting (XSS) vulnerability in the Patchwork package poses significant risks to users and their data. It is crucial to update to the patched version to mitigate these risks effectively. Regular monitoring and validation of inputs are recommended to maintain security.

See every vulnerability recorded for patchwork →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 6.1, indicating a medium severity level.

Patchwork versions 1.1 through 2.1.x are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The potential impacts include data theft, session hijacking, and the execution of unauthorized actions in the context of the user's session.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for patchwork.

How To Fix

Minimum fixed version

1.1.3-r1

This is the first release that contains the fix.

sudo apk add --upgrade patchwork

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