{"id":"CVE-2026-44522","sourceIdentifier":"security-advisories@github.com","published":"2026-05-14T19:16:37.330","lastModified":"2026-10-26T14:10:00.130","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"Note Mark is an open-source note-taking application. From 0.13.0 to before 0.19.4, the Note Mark application allows authenticated users to upload assets to notes via POST /api/notes/{noteID}/assets, where the asset filename is provided through the X-Name HTTP request header. This value is stored directly in the database without any sanitization or validation - no path separator filtering, no directory traversal sequence rejection, and no use of filepath.Base() to strip directory components. The unsanitized name is persisted as-is in the note_assets table (Name column, varchar(80)). When an administrator subsequently runs the data export CLI commands (note-mark migrate export-v1 or note-mark migrate export), the stored asset name is passed directly into filepath.Join() and path.Join() calls as part of the output file path argument to os.Create(). Since Go's filepath.Join() resolves ../ sequences during path normalization, an attacker-controlled asset name containing directory traversal sequences causes the export process to write files to arbitrary locations on the filesystem, completely outside the intended export directory. This vulnerability is fixed in 0.19.4."},{"lang":"es","value":"Note Mark es una aplicación de toma de notas de código abierto. Desde la versión 0.13.0 hasta antes de la 0.19.4, la aplicación Note Mark permite a los usuarios autenticados subir activos a las notas a través de POST /API/notes/{noteID}/assets, donde el nombre de archivo del activo se proporciona a través del encabezado de solicitud HTTP X-Name. Este valor se almacena directamente en la base de datos sin ninguna sanitización o validación - sin filtrado de separadores de ruta, sin rechazo de secuencias de salto de directorio, y sin el uso de filepath.Base() para eliminar componentes de directorio. El nombre no sanitizado se persiste tal cual en la tabla note_assets (columna Name, varchar(80)). Cuando un administrador ejecuta posteriormente los comandos CLI de exportación de datos (note-mark migrate export-v1 o note-mark migrate export), el nombre del activo almacenado se pasa directamente a las llamadas filepath.Join() y path.Join() como parte del argumento de la ruta del archivo de salida a os.Create(). Dado que filepath.Join() de Go resuelve las secuencias .. /  durante la normalización de la ruta, un nombre de activo controlado por el atacante que contiene secuencias de salto de directorio hace que el proceso de exportación escriba archivos en ubicaciones arbitrarias en el sistema de archivos, completamente fuera del directorio de exportación previsto. Esta vulnerabilidad se corrige en la versión 0.19.4."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"enchant97","product":"note-mark","versions":[{"version":">= 0.13.0, < 0.19.4","status":"affected"}]}]}],"metrics":{"cvssMetricV40":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","baseScore":8.6,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"PASSIVE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-05-14T19:44:26.723448Z","id":"CVE-2026-44522","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-20"},{"lang":"en","value":"CWE-22"}]}],"references":[{"url":"https://github.com/enchant97/note-mark/security/advisories/GHSA-g49p-4qxj-88v3","source":"security-advisories@github.com"},{"url":"https://github.com/enchant97/note-mark/security/advisories/GHSA-g49p-4qxj-88v3","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}