Repository navigation
fix(cve5): look for the word Apache, not the string, in the title - #308
Merged
Merged
Conversation
The product names are prepended to the published title and to the announcement subject unless the title already names the product. That was judged by the string "Apache" in the first 40 characters, so a title mentioning an identifier such as ApacheHttpClient was published without the product name. Move the test into titleNamesProduct in custom/cve5/script.js, which looks for "Apache" as a whole word anywhere in the title, and use it for the title, the email subject and the title validator, so the validator warns exactly when the prefix is skipped. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
raboof
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The product names are prepended to the published CVE title and to the announcement email subject, unless the title already names the product.
That was decided by looking for the string
Apachein the first 40 characters of the title,so a title that mentions an identifier such as
ApacheHttpClient.execute()was published without the product name.Changes
titleNamesProduct(title)incustom/cve5/script.js: true whenApacheappears as a whole word (/\bApache\b/) anywhere in the title.textUtil.reduceJSON(publication and JSON download), the email subject incustom/cve5/edit.pug, and the title validator incustom/cve5/conf.js.The validator now warns exactly when the prefix would be skipped.
It no longer compares the title with the first product name, so a title naming the product without the word "Apache" is not flagged.
customRoutes/publishcve.jsexposes the helper as a global for the server-side publish.public/js/vg-editor.jsrebuilt withnpm run bundle:editor.Tests
unittest/test.jsandunittest/validation.jscover a leading product name,Apachelate in a long title, andApacheinside an identifier.npm run unittestpasses withVULNOGRAM_TLS_KEY=unittest/key.pem VULNOGRAM_TLS_CERT=unittest/cert.pem.🤖 Generated with Claude Code