CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2021 · Janeczku

CVE-2021-3988
Janeczku Calibre-web vulnerability

A Cross-site Scripting (XSS) vulnerability exists in janeczku/calibre-web, specifically in the file `edit_books.js`. The vulnerability occurs when editing book properties, such as uploading a cover or a format. The affected code directly inserts user input into the DOM without proper sanitization, allowing attackers to execute arbitrary JavaScript code. This can lead to various attacks, including stealing cookies. The issue is present in the code handling the `#btn-upload-cover` change event.

Affected products

Calibre-web. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Janeczku Calibre-web runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Janeczku products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.