Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. tempura
  4. ›
  5. CVE-2021-23784

CVE-2021-23784: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

November 3, 2021 (updated November 5, 2021)

This affects the package tempura If the input to the esc function is of type object (i.e an array) it is returned without being escaped/sanitized, leading to a potential Cross-Site Scripting vulnerability.

References

  • github.com/lukeed/tempura/commit/58a5c3671e2f36b26810e77ead9e0dd471902f9b
  • github.com/lukeed/tempura/releases/tag/v0.4.0
  • nvd.nist.gov/vuln/detail/CVE-2021-23784
  • snyk.io/vuln/SNYK-JS-TEMPURA-1569633

Code Behaviors & Features

Detect and mitigate CVE-2021-23784 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.4.0

Fixed versions

  • 0.4.0

Solution

Upgrade to version 0.4.0 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/tempura/CVE-2021-23784.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:02 +0000.