CVE-2022-39287: Tiny csrf Tiny-csrf Has Openly Visible CSRF Vulnerability
HIGHCVE-2022-39287 is a HIGH (CVSS 8.1) tiny-csrf has openly visible csrf vulnerability (CWE-319: Cleartext Transmission of Sensitive Information) affecting Tiny csrf libraries in the npm ecosystem. The issue involves tiny-csrf has openly visible csrf tokens. Remediation is available by upgrading affected packages to version 1.1.0.
CVE-2022-39287 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N).
How to Fix CVE-2022-39287
To remediate this vulnerability, upgrade all affected Tiny csrf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install tiny-csrf@1.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls tiny-csrf
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-39287, inspect your project dependencies using npm:
npm ls tiny-csrf
Analyze the terminal output to locate any version of Tiny csrf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.0), your application is affected.
Note: The npm ls tiny-csrf command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-319: Cleartext Transmission of Sensitive Information, where the product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors. In Tiny csrf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-39287 Affected Tiny csrf Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
tiny-csrf
|
npm |
< 1.1.0
|
1.1.0
|
References
Frequently Asked Questions
What is CVE-2022-39287?
Which Tiny csrf versions are affected?
What version fixes CVE-2022-39287?
Is tiny-csrf affected?
What is the CVSS score of CVE-2022-39287?
What CWE is associated with CVE-2022-39287?
How can I check npm dependencies for CVE-2022-39287?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pj2c-h76w-vv6f",
"modified" : "2022-10-07T21:23:18Z",
"published" : "2022-10-07T21:23:18Z",
"aliases" : [ "CVE-2022-39287" ],
"summary" : "tiny-csrf has openly visible CSRF tokens",
"details" : "### Impact\n\nWeak encryption on CSRF so tokens can be read by malicious attackers. \n\n### Patches\n\nProblems have been patched as of v1.1.0\n\n### Workarounds\n\nUpgrade to v1.1.0\n\n### References\n\nhttps://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html \n\n### For more information\n\nSubmit an issue at [the github repo](https://github.com/valexandersaulys/tiny-csrf)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "tiny-csrf"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/valexandersaulys/tiny-csrf/security/advisories/GHSA-pj2c-h76w-vv6f"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-39287"
}, {
"type" : "WEB",
"url" : "https://github.com/valexandersaulys/tiny-csrf/commit/8eead6da3b56e290512bbe8d20c2c5df3be317ba"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/valexandersaulys/tiny-csrf"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-319" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-10-07T21:23:18Z",
"nvd_published_at" : "2022-10-07T20:15:00Z"
}
}