VYPR
Moderate severityNVD Advisory· Published Aug 26, 2020· Updated Aug 4, 2024

XSS due to lack of CSRF validation for replying/publishing

CVE-2020-15156

Description

In nodebb-plugin-blog-comments before version 0.7.0, a logged in user is vulnerable to an XSS attack which could allow a third party to post on their behalf on the forum. This is due to lack of CSRF validation.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
nodebb-plugin-blog-commentsnpm
< 0.7.00.7.0

Affected products

1

Patches

1
cf43beedb051

fix: CSRF issues

1 file changed · +2 2
  • library.js+2 2 modified
    @@ -248,8 +248,8 @@
     		});
     
     		app.get('/comments/get/:id/:pagination?', middleware.applyCSRF, Comments.getCommentData);
    -		app.post('/comments/reply', Comments.replyToComment);
    -		app.post('/comments/publish', Comments.publishArticle);
    +		app.post('/comments/reply', middleware.applyCSRF, Comments.replyToComment);
    +		app.post('/comments/publish', middleware.applyCSRF, Comments.publishArticle);
     
     		app.get('/admin/blog-comments', middleware.admin.buildHeader, renderAdmin);
     		app.get('/api/admin/blog-comments', renderAdmin);
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

5

News mentions

0

No linked articles in our index yet.